Artix Linux Forum

Artix Linux => Software development => Topic started by: goose121 on 08 December 2017, 17:55:28

Title: A basic conversion script from systemd units to OpenRC initscripts
Post by: goose121 on 08 December 2017, 17:55:28
I wrote a perl script (http://github.com/goose121/initify) 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/
Title: Re: A basic conversion script from systemd to OpenRC
Post by: Chris Cromer on 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.
Title: Re: A basic conversion script from systemd to OpenRC
Post by: fungalnet on 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?
Title: Re: A basic conversion script from systemd to OpenRC
Post by: thefallenrat on 08 December 2017, 22:40:10
So 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
Title: Re: A basic conversion script from systemd to OpenRC
Post by: nous on 08 December 2017, 22:56:04
Good job, I've created a minor PR (https://github.com/goose121/initify/compare/master...archnous:patch-1) on that for auto-guessing some sane defaults.
Title: Re: A basic conversion script from systemd to OpenRC
Post by: goose121 on 10 December 2017, 00:29:29
Good job, I've created a minor PR (https://github.com/goose121/initify/compare/master...archnous:patch-1) on that for auto-guessing some sane defaults.

Thanks! I've pulled it in
Title: Re: A basic conversion script from systemd units to OpenRC initscripts
Post by: maxzores on 16 September 2021, 13:57:48
Thanks for this case. I also have the same solution!
Title: Re: A basic conversion script from systemd units to OpenRC initscripts
Post by: nous on 16 September 2021, 17:37:08
Please, don't necrobump old threads. There's a much better solution around: http://openrc.run/