Replace systemd script with init script

Helmut Schneider jumper99 at gmx.de
Wed May 1 20:50:36 UTC 2024


Hi,

I need to replace a systemd script with an init script. I know I can 
remove the existing one by

SERVICE=$MY_SERVICE
sudo systemctl disable $SERVICE
sudo rm /etc/systemd/system/$SERVICE
sudo rm /usr/lib/systemd/system/$SERVICE
sudo rm /lib/systemd/system/${SERVICE}.service
sudo systemctl daemon-reload
sudo systemctl reset-failed

but is that the proper way to do so? What if the package updates, will 
it replace the init script with the systemd script again?

22.04

Thank you!





More information about the ubuntu-users mailing list