[Fedora-packaging] Revised systemd Guidelines
Bill Nottingham
notting at redhat.com
Tue Dec 7 15:23:04 UTC 2010
Toshio Kuratomi (a.badger at gmail.com) said:
> 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?
Transparently; if an init.d script is called with 'start', 'stop', 'reload',
'restart', or 'condrestart' (or any synonyms thereof), it's silently
redirected to systemctl if systemd is in use. See the top of
/etc/init.d/functions for details.
> Does this mean that init scripts have to be rewritten
> to do something like this?
No, no initscript changes are required.
Bill
More information about the packaging
mailing list