[systemd-devel] LSB Requires-Start: ... $network ... vs network.service

Sage Weil sage at inktank.com
Tue Jul 2 20:06:28 PDT 2013

Hi everyone,

I have a sysvinit script on fedora 18 (systemd 195) with

 # Provides:          ceph
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Required-Start:    $remote_fs $named $network $time
 # Required-Stop:     $remote_fs $named $network $time
 # Short-Description: Start Ceph distributed file system daemons at boot  time
 # Description:       Enable Ceph distributed file system services.

and my daemon keeps failing on startup to bind to it's ip:port.  I 
modified the script to dump systemctl -a output and I see

 network.service           loaded inactive   dead            LSB: Bring up/down networking
 NetworkM...online.service loaded inactive   dead            Network Manager Wait Online
 NetworkManager.service    loaded active     running         Network Manager

I know next to nothing about systemd (or Fedora, for that matter), but I 
would expect the $network bit in Required-Start to make the job wait for 
network.service.  FWIW, this is what 'chkconfig --add ceph' during package 
installation seems to have done:

 $ find /etc/rc.d | grep ceph

Hopefully there is somewhere obvious where we've gone astray?


More information about the systemd-devel mailing list