moonraker icon indicating copy to clipboard operation
moonraker copied to clipboard

Enable support for OpenRC and other init systems

Open louisrousseau opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe

I've recently managed to install Klipper, Moonraker and Mainsail on an old phone using postmarketOS - an Alpine Linux derived distro - not Android.

Main advantages are that this already supports several old phones with a much more minimalist busybox/Linux install than Android and uses an up-to-date mainline kernel.

One problem I've had so far is that some parts of Moonraker expect a working systemd initialization system to be present, e.g. I can't reboot the host via Moonraker from Mainsail and have to do so via ssh instead.

Describe the solution you'd like

Some way to override those commands that depend on systemd.

Describe alternatives you've considered

No response

Additional information

No response

louisrousseau avatar Jul 31 '23 04:07 louisrousseau

would a solution where you define the commands used to start/stop/restart reboot and shutdown the services work for you? I also run distros with OpenRC and my klipper/mainsail etc runs in docker so custom commands would solve my problem and it would be useful to me too. maybe a custom provider in machine section along with more config for the commands?

nelsongraca avatar Mar 09 '24 22:03 nelsongraca

It would probably have though an update eventually broke my postmarketOS, by that time Raspberry Pi 4s had come back in stock so I moved back to a much more "standard" Raspberry Pi OS installation.

louisrousseau avatar Mar 09 '24 22:03 louisrousseau

alright, might still implement it as it will still be useful to me.

nelsongraca avatar Mar 09 '24 23:03 nelsongraca