Browse Source

Ticket 48747 - dirsrv service fails to start when nsslapd-listenhost is configured

Thanks for the discussions to
According to these discussion with Lukas Slebodnik <[email protected]> [1] and
William Brown <[email protected]> [2], replacing network.service with network.target
and network-online.target.
[1] https://fedorahosted.org/389/ticket/48747#comment:6
[2] https://fedorahosted.org/389/ticket/48747#comment:10

Also, let systemd.group.in have the same After= line as the individual service.

Finally, this changes the dependencies of network.target to network-online.target
which in some cases may be a stricter requirement.

https://fedorahosted.org/389/ticket/48747

Author: nhosoi, wibrown

Review by: nhosoi (Thanks!)
William Brown 9 years ago
parent
commit
40c2aa6b3a

+ 1 - 1
wrappers/systemd.group.in

@@ -1,6 +1,6 @@
 [Unit]
 Description=@capbrand@ Directory Server
-After=syslog.target network.target ntpd.service
+After=chronyd.service ntpd.service network-online.target syslog.target
 
 [Install]
 WantedBy=multi-user.target

+ 1 - 1
wrappers/systemd.template.asan.service.in

@@ -15,7 +15,7 @@
 [Unit]
 Description=@capbrand@ Directory Server with ASAN %i.
 PartOf=@systemdgroupname@
-After=chronyd.service network.service
+After=chronyd.service ntpd.service network-online.target syslog.target
 
 [Service]
 Type=notify

+ 1 - 1
wrappers/systemd.template.service.in

@@ -15,7 +15,7 @@
 [Unit]
 Description=@capbrand@ Directory Server %i.
 PartOf=@systemdgroupname@
-After=chronyd.service network.service
+After=chronyd.service ntpd.service network-online.target syslog.target
 
 [Service]
 Type=notify