diff options
author | Craig Andrews <candrews@gentoo.org> | 2019-08-27 14:30:25 -0400 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2019-08-27 14:43:20 -0400 |
commit | e4b4dea3d09eef699a51f915e96e53db6084b46b (patch) | |
tree | 38ca005387a6655414b9f4a0fd095bb286ca3c21 /net-misc/ntp/files | |
parent | kodi-game-libretro-twentyfortyeight: Call cmake-utils_src_prepare in src_prepare (diff) | |
download | gentoo-e4b4dea3d09eef699a51f915e96e53db6084b46b.tar.gz gentoo-e4b4dea3d09eef699a51f915e96e53db6084b46b.tar.bz2 gentoo-e4b4dea3d09eef699a51f915e96e53db6084b46b.zip |
net-misc/ntp: systemd service improvements
systemd services Wants=network-online.target
Remove explicit reference to NetworkManager,
use generic network-online.target instead
Closes: https://bugs.gentoo.org/658608
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'net-misc/ntp/files')
-rw-r--r-- | net-misc/ntp/files/ntpdate.service-r2 | 14 | ||||
-rw-r--r-- | net-misc/ntp/files/sntp.service-r3 | 14 |
2 files changed, 28 insertions, 0 deletions
diff --git a/net-misc/ntp/files/ntpdate.service-r2 b/net-misc/ntp/files/ntpdate.service-r2 new file mode 100644 index 000000000000..7ad294eccdee --- /dev/null +++ b/net-misc/ntp/files/ntpdate.service-r2 @@ -0,0 +1,14 @@ +[Unit] +Description=Set time via NTP using ntpdate +After=network-online.target nss-lookup.target +Before=time-sync.target +Wants=network-online.target time-sync.target +Conflicts=systemd-timesyncd.service + +[Service] +Type=oneshot +ExecStart=/usr/sbin/ntpdate -b -u $SERVER +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/ntp/files/sntp.service-r3 b/net-misc/ntp/files/sntp.service-r3 new file mode 100644 index 000000000000..2ab722f2c6f1 --- /dev/null +++ b/net-misc/ntp/files/sntp.service-r3 @@ -0,0 +1,14 @@ +[Unit] +Description=Set time via SNTP +After=network.target network-online.target nss-lookup.target +Before=time-sync.target +Wants=network-online.target time-sync.target +Conflicts=systemd-timesyncd.service + +[Service] +Type=oneshot +ExecStart=/usr/bin/sntp -s $SERVER +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target |