From 46cfcf828b09ac24df47cd8feb3739146cbce41e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 9 Oct 2011 19:38:46 +0200 Subject: [PATCH] systemd-units: fixed ntpd and dcron units. --- srcpkgs/systemd-units/files/dcron.service | 3 ++- srcpkgs/systemd-units/files/ntpd.service | 5 ++--- srcpkgs/systemd-units/template | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/srcpkgs/systemd-units/files/dcron.service b/srcpkgs/systemd-units/files/dcron.service index 4ef1dd171a..59fc64b80b 100644 --- a/srcpkgs/systemd-units/files/dcron.service +++ b/srcpkgs/systemd-units/files/dcron.service @@ -2,8 +2,9 @@ Description=Periodic Command Scheduler [Service] +Type=forking EnvironmentFile=/etc/conf.d/crond -ExecStart=/usr/sbin/crond -f $CROND_ARGS +ExecStart=/usr/sbin/crond $CROND_ARGS [Install] WantedBy=multi-user.target diff --git a/srcpkgs/systemd-units/files/ntpd.service b/srcpkgs/systemd-units/files/ntpd.service index 1905213ffc..4fbf2bfd91 100644 --- a/srcpkgs/systemd-units/files/ntpd.service +++ b/srcpkgs/systemd-units/files/ntpd.service @@ -3,9 +3,8 @@ Description=Network Time Service After=syslog.target [Service] -User=ntpd -ExecStartPre=ln -sf /var/chroot/ntpd/var/db/ntpd.drift /var/db/ntpd.drift -ExecStart=/usr/bin/ntpd -f /var/db/ntpd.drift -u ntpd:ntpd -i /var/chroot/ntpd -n +ExecStartPre=-/bin/ln -sf /var/chroot/ntpd/var/db/ntpd.drift /var/db/ntpd.drift +ExecStart=/usr/bin/ntpd -c /etc/ntp.conf -f /var/db/ntpd.drift -u ntpd:ntpd -i /var/chroot/ntpd -n [Install] WantedBy=multi-user.target diff --git a/srcpkgs/systemd-units/template b/srcpkgs/systemd-units/template index f7d1d4368d..b863e57006 100644 --- a/srcpkgs/systemd-units/template +++ b/srcpkgs/systemd-units/template @@ -1,6 +1,6 @@ # Template file for 'systemd-units' pkgname=systemd-units -version=0.2 +version=0.3 build_style=custom-install short_desc="Void GNU/Linux systemd units" maintainer="Juan RP "