No DOWN file support in runit?

2016-02-13 Thread Steve Litt
Hi all,

I've been using runit for about 4 months now, and a few days ago I
tried to disable a service by placing a file called DOWN in its
directory (like you would with s6 or daemontools). However, the service
kept coming up at boot.

What's the idiomatic way to prevent a runit service from starting at
boot? I hope the answer isn't to unlink it.

Thanks,

SteveT

Steve Litt 
February 2016 featured book: The Key to Everyday Excellence
http://www.troubleshooters.com/key


Re: No DOWN file support in runit?

2016-02-13 Thread Colin Booth
On Feb 13, 2016 10:18 AM, "Steve Litt"  wrote:
>
> Hi all,
>
> I've been using runit for about 4 months now, and a few days ago I
> tried to disable a service by placing a file called DOWN in its
> directory (like you would with s6 or daemontools). However, the service
> kept coming up at boot.
>
> What's the idiomatic way to prevent a runit service from starting at
> boot? I hope the answer isn't to unlink it.
>
You're doing something wrong since a down file is the correct way to do it.
It is case sensitive (like all things unix) so check that. Also, the down
file only affects the initial state of runsv (again identical to the
behavior of supervise and s6-supervise) so if you're putting the file in
place after runsvdir has spawned runsv, you'll need to issue an 'sv d' in
order to bring the service down.

Cheers!