From 78103dc7caeb20432894b0107cae40abc224c9fe Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Oct 2011 00:00:29 +0200 Subject: [PATCH] systemd-units: remove hwclock, don't run ntpd service in chroot. hwclock service is useless with latest update to the kernel pkg, system time is set from RTC at boot. After reading a post from systemd's blog, I've found that running ntpd in a chroot is not the way with systemd. --- srcpkgs/systemd-units/files/hwclock.service | 14 -------------- srcpkgs/systemd-units/files/ntpd.service | 3 +-- srcpkgs/systemd-units/template | 2 +- 3 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 srcpkgs/systemd-units/files/hwclock.service diff --git a/srcpkgs/systemd-units/files/hwclock.service b/srcpkgs/systemd-units/files/hwclock.service deleted file mode 100644 index c74ed60932..0000000000 --- a/srcpkgs/systemd-units/files/hwclock.service +++ /dev/null @@ -1,14 +0,0 @@ -[Unit] -Description=Syncs system time from the Hardware Clock -DefaultDependencies=no -Before=basic.target - -[Service] -Type=oneshot -RemainAfterExit=yes -ExecStartPre=/sbin/modprobe -q rtc -ExecStart=/sbin/hwclock --hctosys --utc -ExecStop=/sbin/hwclock --systohc --utc - -[Install] -WantedBy=basic.target diff --git a/srcpkgs/systemd-units/files/ntpd.service b/srcpkgs/systemd-units/files/ntpd.service index 4fbf2bfd91..5a92d1044c 100644 --- a/srcpkgs/systemd-units/files/ntpd.service +++ b/srcpkgs/systemd-units/files/ntpd.service @@ -3,8 +3,7 @@ Description=Network Time Service After=syslog.target [Service] -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 +ExecStart=/usr/bin/ntpd -c /etc/ntp.conf -n [Install] WantedBy=multi-user.target diff --git a/srcpkgs/systemd-units/template b/srcpkgs/systemd-units/template index cbf120477d..e3f63dd273 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.6 +version=0.7 build_style=custom-install short_desc="Void GNU/Linux systemd units" maintainer="Juan RP "