systemd-units: fixed ntpd and dcron units.

This commit is contained in:
Juan RP 2011-10-09 19:38:46 +02:00
parent 5fef6946d7
commit 46cfcf828b
3 changed files with 5 additions and 5 deletions

View File

@ -2,8 +2,9 @@
Description=Periodic Command Scheduler Description=Periodic Command Scheduler
[Service] [Service]
Type=forking
EnvironmentFile=/etc/conf.d/crond EnvironmentFile=/etc/conf.d/crond
ExecStart=/usr/sbin/crond -f $CROND_ARGS ExecStart=/usr/sbin/crond $CROND_ARGS
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -3,9 +3,8 @@ Description=Network Time Service
After=syslog.target After=syslog.target
[Service] [Service]
User=ntpd ExecStartPre=-/bin/ln -sf /var/chroot/ntpd/var/db/ntpd.drift /var/db/ntpd.drift
ExecStartPre=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
ExecStart=/usr/bin/ntpd -f /var/db/ntpd.drift -u ntpd:ntpd -i /var/chroot/ntpd -n
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -1,6 +1,6 @@
# Template file for 'systemd-units' # Template file for 'systemd-units'
pkgname=systemd-units pkgname=systemd-units
version=0.2 version=0.3
build_style=custom-install build_style=custom-install
short_desc="Void GNU/Linux systemd units" short_desc="Void GNU/Linux systemd units"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"