dw-0 / kiauh

Klipper Installation And Update Helper
GNU General Public License v3.0
3.4k stars 492 forks source link

Q: Support for init.d #287

Closed CODeRUS closed 1 year ago

CODeRUS commented 1 year ago

Is your feature request related to a problem? Please describe

kiauh currently supports only systemd installation. Manually created intt.d services are being removed by kiauh as unwanted.

Describe the solution you'd like

Detect if running os is actually init.d based, or just check for systemd existence

Describe alternatives you've considered

No response

Additional information

This may help to get proper way to install klipper and co. to android/termux, linux4android containers and creality pad (probably even more exists)

I can start working on it and test on android with linux deploy installation of debian. Later can be updated for creality pad if necessary.

dw-0 commented 1 year ago

Mhhh im not quite sure about that. That would require providing init.d service files for moonraker and literally all other components as well. What im really not interested in is supporting the creality sonic pad in any way. I refuse to support that product at all.

So the general issue or feature you propose is, to not touch any existing init.d klipper services in the klipper remove script? And simply stick to systemd only anymore?

I can start working on it and test on android with linux deploy installation of debian.

we could think about a special branch maybe... a dedicated branch that supports such operating systems and keep the KIAUH master branch support systemd only? not sure how smart that would be in the long run though.

CODeRUS commented 1 year ago

So the general issue or feature you propose is, to not touch any existing init.d klipper services in the klipper remove script? And simply stick to systemd only anymore?

At least yes, the rest of hacks could be done with fake systemctl script

dw-0 commented 1 year ago

@CODeRUS fyi, once #304 is merged, init.d support is removed: <4ebe016 (#304)> that means, init.d services will also not be removed anymore by kiauh. i think that is what you wanted, right?

CODeRUS commented 1 year ago

@th33xitus yes that's would be great, thanks!