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.
This commit is contained in:
parent
9c4e633278
commit
78103dc7ca
3 changed files with 2 additions and 17 deletions
|
@ -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
|
|
|
@ -3,8 +3,7 @@ Description=Network Time Service
|
||||||
After=syslog.target
|
After=syslog.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStartPre=-/bin/ln -sf /var/chroot/ntpd/var/db/ntpd.drift /var/db/ntpd.drift
|
ExecStart=/usr/bin/ntpd -c /etc/ntp.conf -n
|
||||||
ExecStart=/usr/bin/ntpd -c /etc/ntp.conf -f /var/db/ntpd.drift -u ntpd:ntpd -i /var/chroot/ntpd -n
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'systemd-units'
|
# Template file for 'systemd-units'
|
||||||
pkgname=systemd-units
|
pkgname=systemd-units
|
||||||
version=0.6
|
version=0.7
|
||||||
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>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue