A basic conversion script from systemd units to OpenRC initscripts 08 December 2017, 17:55:28 I wrote a perl script to convert (simple) systemd units to OpenRC initscripts, which will hopefully make it easier to port things to OpenRC. Feedback is appreciated.[Mod edit]There's a more complete online solution that converts systemd units to OpenRC scripts:http://openrc.run/ Last Edit: 16 September 2021, 23:08:57 by nous 2 Likes
Re: A basic conversion script from systemd to OpenRC Reply #1 – 08 December 2017, 20:14:38 Thanks, I am sure it will be useful at some point. I haven't run into a case where gentoo didn't have the init script I need so far, but if I ever do I will give this a try.
Re: A basic conversion script from systemd to OpenRC Reply #2 – 08 December 2017, 21:48:52 So would this be a script to convert straight Arch with OpenRC?Or is it more generic for any linux on systemd?
Re: A basic conversion script from systemd to OpenRC Reply #3 – 08 December 2017, 22:40:10 Quote from: fungalnet – on 08 December 2017, 21:48:52So would this be a script to convert straight Arch with OpenRC?Or is it more generic for any linux on systemd?This script were used to convert any systemd units ( services) into openrc compatible init script, NOT converting a distro
Re: A basic conversion script from systemd to OpenRC Reply #4 – 08 December 2017, 22:56:04 Good job, I've created a minor PR on that for auto-guessing some sane defaults.
Re: A basic conversion script from systemd to OpenRC Reply #5 – 10 December 2017, 00:29:29 Quote from: nous – on 08 December 2017, 22:56:04Good job, I've created a minor PR on that for auto-guessing some sane defaults.Thanks! I've pulled it in
Re: A basic conversion script from systemd units to OpenRC initscripts Reply #6 – 16 September 2021, 13:57:48 Thanks for this case. I also have the same solution!
Re: A basic conversion script from systemd units to OpenRC initscripts Reply #7 – 16 September 2021, 17:37:08 Please, don't necrobump old threads. There's a much better solution around: http://openrc.run/