diff options
author | Łukasz Stelmach <stlman@poczta.fm> | 2013-04-07 20:08:56 +0200 |
---|---|---|
committer | Henry Gebhardt <hsggebhardt@googlemail.com> | 2013-04-07 14:39:19 -0400 |
commit | c350c6f3c7e5a78bc557dc0d68a2d6bd7149096f (patch) | |
tree | 19282e5dd88049b44155f26e024301e93e0c6fed | |
parent | switch to thin-manifests (does not need manifests at all) (diff) | |
download | systemd-c350c6f3c7e5a78bc557dc0d68a2d6bd7149096f.tar.gz systemd-c350c6f3c7e5a78bc557dc0d68a2d6bd7149096f.tar.bz2 systemd-c350c6f3c7e5a78bc557dc0d68a2d6bd7149096f.zip |
ntp: introduce ntp-client.service
Signed-off-by: Łukasz Stelmach <stlman@poczta.fm>
-rw-r--r-- | sys-apps/systemd-units/files/services-basic/ntp-client.service | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-apps/systemd-units/files/services-basic/ntp-client.service b/sys-apps/systemd-units/files/services-basic/ntp-client.service new file mode 100644 index 0000000..0782e5e --- /dev/null +++ b/sys-apps/systemd-units/files/services-basic/ntp-client.service @@ -0,0 +1,14 @@ +[Unit] +Description=setting clock with Network Time Protocol +Wants=time-sync.target +Before=time-sync.target +After=network.target +ConditionPathExists=/etc/conf.d/ntp-client + +[Service] +Type=oneshot +EnvironmentFile=/etc/conf.d/ntp-client +ExecStart=/usr/bin/env -- $NTPCLIENT_CMD $NTPCLIENT_OPTS + +[Install] +WantedBy=multi-user.target |