summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-04-29 08:57:51 +0200
committerKay Sievers <kay@vrfy.org>2014-04-29 09:51:53 +0200
commita91df40e69fec72cc98c9829721fa5153da28bc2 (patch)
tree7d1da98b41e9860df7b3d2d704ecb54618fe14aa /units
parent0b36bbc42d3a408531517a02acaf56105b863d55 (diff)
timesyncd: add unit and man page
Diffstat (limited to 'units')
-rw-r--r--units/.gitignore1
-rw-r--r--units/systemd-timesyncd.service.in20
2 files changed, 21 insertions, 0 deletions
diff --git a/units/.gitignore b/units/.gitignore
index 3bae4b46b6..fca17c974f 100644
--- a/units/.gitignore
+++ b/units/.gitignore
@@ -54,6 +54,7 @@
/systemd-suspend.service
/systemd-sysctl.service
/systemd-timedated.service
+/systemd-timesyncd.service
/systemd-tmpfiles-clean.service
/systemd-tmpfiles-setup-dev.service
/systemd-tmpfiles-setup.service
diff --git a/units/systemd-timesyncd.service.in b/units/systemd-timesyncd.service.in
new file mode 100644
index 0000000000..4a363f71ca
--- /dev/null
+++ b/units/systemd-timesyncd.service.in
@@ -0,0 +1,20 @@
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Network Time Synchronization
+Documentation=man:systemd-timesyncd.service(8)
+ConditionCapability=CAP_SYS_TIME
+
+[Service]
+Type=notify
+Restart=always
+RestartSec=0
+ExecStart=@rootlibexecdir@/systemd-timesyncd
+
+[Install]
+WantedBy=multi-user.target