JFTR I have added support for ExecStop, Exec{Start,Stop}{Pre,Post} and X-Debian-Daemonize (to pass extra arguments to the daemon when Type=simple and you want it to daemonize).
The shell script is still far from the universal and complete tool, but it really makes me wonder – it was really a GSoC project (and not something GoogleDayOfCode :-P)? O. On Fri, Feb 14, 2014, at 13:55, Ondřej Surý wrote: > Hi Adrian, > > On Fri, Feb 14, 2014, at 13:33, John Paul Adrian Glaubitz wrote: > > On 02/14/2014 12:01 PM, Ondřej Surý wrote: > > > I have hacked together a PoC systemd2init shell script on top of > > > augeas-tools (you need at least jessie version) to autogenerate sysv-rc > > > script out of simple service file. > > > > Cool! Thanks for hacking this together. I'd guess this could be > > very helpful during the transition. > > My point is that's it's not that hard to write and the dh-systemd would > benefit from such helper command. And if there's somebody willing to > rewrite it into perl dh_systemd_sysvinit command I would be happy to > help to finish it/debug it on my packages. The problem is that I touch > perl just in case of emergency and only in full hazmat suit, so somebody > would need to write the basis and I would be able to tweak it around. > > > There has been a similar project during a Debian GSoC project, have > > you looked into that as well? > > > > > https://github.com/akhilvij/systemd-to-sysvinit-converter > > Didn't know about that and it looks a tad bit more complete, but as I > said we need to make this command available in an easy way to the > packagers. > > My original idea was to write a simple drop-in shell script that would > be able to parse the .service file on runtime. That's still possible > with augtool, but you want be able to generate insserv headers on the > fly. I guess that's not a problem since most packages would be quite > happy with $syslog $remote_fs, but Provides: and Short-Description: > fields would be just wrong. > > O. > -- > Ondřej Surý <ond...@sury.org> > Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server > > > -- > To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmas...@lists.debian.org > Archive: > http://lists.debian.org/1392382559.19050.83391569.1d608...@webmail.messagingengine.com > -- Ondřej Surý <ond...@sury.org> Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1392384253.24463.83401085.6a4ea...@webmail.messagingengine.com