[Fedora-packaging] Revised systemd Guidelines

Toshio Kuratomi a.badger at gmail.com
Tue Dec 7 02:13:35 UTC 2010


On Fri, Dec 03, 2010 at 02:00:37PM -0500, Bill Nottingham wrote:
> Toshio Kuratomi (a.badger at gmail.com) said: 
> > 1) A system admin unfamiliar with systemd installs apache and sees that
> > there's an /etc/init.d/httpd file.  He runs /etc/init.d/httpd start to
> > startup the service unaware that when systemd reboots the service it will be
> > using the unit file and not the sysvinit script.
> 
> /etc/init.d/<foo> start redirects to systemctl; systemd will then start
> whichever of the units is 'active' - in this case, it would be the systemd
> service both before and after reboot.
> 
How does this work?  Does this mean that init scripts have to be rewritten
to do something like this?

   start)
      systemctl check-that-systemd-is-the-init-system
      if test $? ; then 
          systemctl $1 start
      else
          # Do startup when running sysvinit/upstart/etc
      fi

-Toshio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/packaging/attachments/20101206/c64eaff6/attachment.bin 


More information about the packaging mailing list