Re: [389-commits] wrappers/systemd.template.service.in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On (29/02/16 18:43), Noriko Hosoi wrote:
> wrappers/systemd.template.service.in |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>New commits:
>commit 1e2cfe2ea4ebc7ac31f292bf0076cc1befd15a78
>Author: Viktor Ashirov <vashirov@xxxxxxxxxx>
>Date:   Mon Feb 29 19:07:12 2016 +0100
>
>    Ticket 48747 - dirsrv service fails to start when nsslapd-listenhost is configured
>    
>    Bug Description:
>    In some environments network initialization takes a long time (slow DHCP, etc).
>    When nsslapd-listenhost is configured, dirsrv systemd service fails to start,
>    because it doesn't wait for the network to be available.
>    
>    Fix Description:
>    Make dirsrv@.service wait for network.service
>    
>    https://fedorahosted.org/389/ticket/48747
>    
>    Reviewed by nhosoi@xxxxxxxxxx.
>
>diff --git a/wrappers/systemd.template.service.in b/wrappers/systemd.template.service.in
>index 629c1ad..3eb0789 100644
>--- a/wrappers/systemd.template.service.in
>+++ b/wrappers/systemd.template.service.in
>@@ -15,7 +15,7 @@
> [Unit]
> Description=@capbrand@ Directory Server %i.
> PartOf=@systemdgroupname@
>-After=chronyd.service
>+After=chronyd.service network.service
                        ^^^^^^^^^^^^^^^
                I'm not sure it is a right solution.
network.service:
● network.service - LSB: Bring up/down networking
   Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
   Active: inactive (dead)
     Docs: man:systemd-sysv-generator(8)

I think you should use "network-online.target"
more details in man 7 systemd.special
or even better http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget

@see also ntpdate.service chrony-dnssrv@.service

LS
--
389-devel mailing list
389-devel@%(host_name)s
http://lists.fedoraproject.org/admin/lists/389-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Directory Announce]     [Fedora Users]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Review]     [Fedora Art]     [Fedora Music]     [Fedora Packaging]     [CentOS]     [Fedora SELinux]     [Big List of Linux Books]     [KDE Users]     [Fedora Art]     [Fedora Docs]

  Powered by Linux