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

Bug#727708: OpenRC now works on GNU/Hurd! :)



Hello,

On Fri, 17 Jan 2014 20:41:59 +0800
Thomas Goirand <zigo@debian.org> wrote:

> Let's say you rewrite /etc/init.d/foo, and transform it from a init.d
> traditional sysv-rc script to an OpenRC runscript in your package. If
> the init system is systemd, then systemd will *not* understand the
> OpenRC runscript. This means that you will also have to write a
> systemd unit file, if you want to write /etc/init.d/foo as an OpenRC
> runscript. The same would of course apply to Upstart.

It is actually fairly easy to write an initscript which uses native
OpenRC facilities if they're available. While this serves little
practical use, I tried to play with this, and this is the result:

http://sources.debian.net/src/twms/0.05t-2/debian/init

This lacks OpenRC's depends() function, but has LSB headers instead,
so otherwise it works fine.

-- 
Cheers,
  Andrew

Attachment: signature.asc
Description: PGP signature


Reply to: