units: minor cleanups
This commit is contained in:
parent
ac78d81a35
commit
689d781b87
|
@ -8,11 +8,12 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Network Service
|
Description=Network Service
|
||||||
Documentation=man:systemd-networkd.service(8)
|
Documentation=man:systemd-networkd.service(8)
|
||||||
|
ConditionCapability=CAP_NET_ADMIN
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
After=dbus.service network-pre.target systemd-sysusers.service
|
After=dbus.service network-pre.target systemd-sysusers.service
|
||||||
Before=network.target
|
Before=network.target multi-user.target shutdown.target
|
||||||
|
Conflicts=shutdown.target
|
||||||
Wants=network.target
|
Wants=network.target
|
||||||
ConditionCapability=CAP_NET_ADMIN
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
|
|
|
@ -9,13 +9,12 @@
|
||||||
Description=Network Time Synchronization
|
Description=Network Time Synchronization
|
||||||
Documentation=man:systemd-timesyncd.service(8)
|
Documentation=man:systemd-timesyncd.service(8)
|
||||||
ConditionCapability=CAP_SYS_TIME
|
ConditionCapability=CAP_SYS_TIME
|
||||||
DefaultDependencies=off
|
DefaultDependencies=no
|
||||||
RequiresMountsFor=/var/lib/systemd/clock
|
RequiresMountsFor=/var/lib/systemd/clock
|
||||||
After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-sysusers.service
|
After=systemd-remount-fs.service systemd-tmpfiles-setup.service systemd-sysusers.service
|
||||||
Before=sysinit.target shutdown.target
|
Before=time-sync.target sysinit.target shutdown.target
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
Wants=time-sync.target
|
Wants=time-sync.target
|
||||||
Before=time-sync.target
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
|
|
Loading…
Reference in a new issue