systemd-units: added a hwclock service to sync system time from hwclock.
This commit is contained in:
parent
90e1bb44b0
commit
ac7ef4932d
2 changed files with 14 additions and 1 deletions
13
srcpkgs/systemd-units/files/hwclock.service
Normal file
13
srcpkgs/systemd-units/files/hwclock.service
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[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 -s
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=basic.target
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'systemd-units'
|
# Template file for 'systemd-units'
|
||||||
pkgname=systemd-units
|
pkgname=systemd-units
|
||||||
version=0.3
|
version=0.4
|
||||||
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…
Reference in a new issue