I noticed strange behavior with "rsm" enable and disable command.
Problem:Enabling service automatically starts the service. Same happens when disabling service
* command I use
sudo rsm disable NetworkManager
Expected:It should just enable/disable service
This is how runit works: once you put service in /etc/runit/runsvdir/default it is automatically started. It can be probably prevented by adding file named "down" but with this file service can only be started by user
This occurs due to the fact that runit has supervisor.
As
@phoenix_king_rus correctly mentioned the runsvdir, whatever is linked in the default starts automatically.
If you don't want the service to be started when you enable it, just create the file named down in its directory before creating a symlink. E.g. for NetworkManger:
sudo touch /etc/runit/sv/NetworkManager/down
While this file is present, the service won't be started. In order to start it, delete this file.