systemd-units: added a hwclock service to sync system time from hwclock.

This commit is contained in:
Juan RP 2011-10-10 10:19:32 +02:00
parent 90e1bb44b0
commit ac7ef4932d
2 changed files with 14 additions and 1 deletions

View 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

View file

@ -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>"