zigford / snapd

Gentoo overlay dedicated for snap packaging
GNU General Public License v2.0
10 stars 4 forks source link

does not work on openrc systems #7

Open necrose99 opened 4 years ago

necrose99 commented 4 years ago

https://github.com/goose121/initify

transmogrify systemd service units to openrc.

necrose99 commented 4 years ago

https://github.com/zigford/snapd/files/5170472/snapd-units.converted.zip

zigford commented 4 years ago

I'll leave this open in the hopes that someone will one day have the time and patience to make this work on non systemd systems

mardab commented 3 years ago

Thanks for that, but what am I supposed to do with that zip file? It looks incomplete.

necrose99 commented 3 years ago

https://github.com/goose121/initify

This will convert most systemd units to openrc.

Exception is systemd timers. Chron timers perhaps.. Which can be a c'avete.

Ie start stop openrc daemon on boot or etc ..

For very simple run ntpd or snapd at starup , then whats included in zipfile is a 1:1 out of the basic systemd unit to openrc equivalent.

More complicated openrc/systemd ... bit more work.

necrose99 commented 3 years ago

perl initify.pl snapd.systemd snapd.openrc conversion completed

The openrc deamon support in snapd at this time natively wasn't known , however attempted to get snapd to play a tad more nicely , was the hope.

cronify.pl [file]
Turns a systemd timer-file into a cron timespec

Can do however limited in this aspect.