Re: systemd2init PoC
Thomas Goirand writes: > What about exploring Ian Jackson's idea, which was to hack a debhelper > that would generate things for multiple init systems? Can I file RC bugs when that breaks horribly? (Because it will.) I would suggest not going down that route, it only leads to pain and suffering, much more so than maintaining multiple init scripts by hand, via patches over a 1200baud modem line, working from an ancient parisc box running hp-ux. (I tried, both.) -- |8] -- 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/87wqgxtyfj.fsf@algernon.balabit
Re: systemd2init PoC
On 02/14/2014 01:33 PM, 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. Why only during the transition? If we want to support systemd as default init system and other init systems more or less easily, requiring service files and converting them automatically sounds like a good idea. It could even produce open-rc init scripts. And users can choose whatever they like to run. Sounds like good idea to me :) -- Bernd ZeimetzDebian GNU/Linux Developer http://bzed.dehttp://www.debian.org GPG Fingerprint: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F -- 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/52fe4bee.4090...@bzed.de
Re: systemd2init PoC
On 02/14/2014 07:01 PM, Ondřej Surý wrote: > Hey all, > > 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. > > It can handle: > > Environment > EnvironmentFile > ExecStart > ExecReload > PidFile > Description > > Right now you need to put the service file to: > > debian/lib/systemd/system/.service > > and run > > systemd2init.sh > > and it should generate > > debian/.init.dh > > It's really a proof of concept, but since we have libconfig-augeas-perl > available in the archive, I guess it can be rewritten into > dh_systemd_init with little effort (if you don't hate perl) and included > in dh-systemd package. > > The git repository is located at > ssh://git.debian.org/git/collab-maint/systemd2init.git, feel free to > update, rewrite, etc. > > O. That's cool. I certainly will have a look into it. What about exploring Ian Jackson's idea, which was to hack a debhelper that would generate things for multiple init systems? Cheers, Thomas -- 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/52fe2a10.3080...@debian.org
Re: systemd2init PoC
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ý > 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ý 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
Re: systemd2init PoC
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ý 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
Re: systemd2init PoC
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. 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 Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `-GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 -- 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/52fe0d2a.4090...@physik.fu-berlin.de
systemd2init PoC
Hey all, 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. It can handle: Environment EnvironmentFile ExecStart ExecReload PidFile Description Right now you need to put the service file to: debian/lib/systemd/system/.service and run systemd2init.sh and it should generate debian/.init.dh It's really a proof of concept, but since we have libconfig-augeas-perl available in the archive, I guess it can be rewritten into dh_systemd_init with little effort (if you don't hate perl) and included in dh-systemd package. The git repository is located at ssh://git.debian.org/git/collab-maint/systemd2init.git, feel free to update, rewrite, etc. O. -- Ondřej Surý 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/1392375667.28811.83357633.4068c...@webmail.messagingengine.com