Skip to main content
Topic: rsm disable / enable issue (Read 681 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

rsm disable / enable issue

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
Code: [Select]
sudo rsm disable NetworkManager

Expected:

It should just enable/disable service
Create problems which don't have solution

Re: rsm disable / enable issue

Reply #1
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
ARMtix

Re: rsm disable / enable issue

Reply #2
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
Code: [Select]
sudo rsm disable NetworkManager

Expected:

It should just enable/disable service

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.

Re: rsm disable / enable issue

Reply #3
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:
Code: [Select]
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.