diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-10-26 21:39:30 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-10-26 21:39:30 -0400 |
commit | 184094edf59db6a7b753ef7731c7728727c842b7 (patch) | |
tree | 51dbf473a53ce418b1fba05c57fcc63f0065253f /src/systemd-timesyncd/systemd-timesyncd.service.in | |
parent | 0167e6da4c08602585217269f0a9485d534e77d7 (diff) |
./tools/notsd-move
Diffstat (limited to 'src/systemd-timesyncd/systemd-timesyncd.service.in')
-rw-r--r-- | src/systemd-timesyncd/systemd-timesyncd.service.in | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/systemd-timesyncd/systemd-timesyncd.service.in b/src/systemd-timesyncd/systemd-timesyncd.service.in new file mode 100644 index 0000000000..df1e339196 --- /dev/null +++ b/src/systemd-timesyncd/systemd-timesyncd.service.in @@ -0,0 +1,35 @@ +# 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 +ConditionVirtualization=!container +DefaultDependencies=no +RequiresMountsFor=/var/lib/systemd/clock +After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-sysusers.service +Before=time-sync.target sysinit.target shutdown.target +Conflicts=shutdown.target +Wants=time-sync.target + +[Service] +Type=notify +Restart=always +RestartSec=0 +ExecStart=@rootlibexecdir@/systemd-timesyncd +CapabilityBoundingSet=CAP_SYS_TIME CAP_SETUID CAP_SETGID CAP_SETPCAP CAP_CHOWN CAP_DAC_OVERRIDE CAP_FOWNER +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=full +ProtectHome=yes +WatchdogSec=3min +MemoryDenyWriteExecute=yes +SystemCallFilter=~@cpu-emulation @debug @keyring @module @mount @obsolete @raw-io + +[Install] +WantedBy=sysinit.target |