On 2/13/07, Eric Shubes <[EMAIL PROTECTED]> wrote:Erik A. Espinoza wrote: >> As long as there's 'svc' to control it, I see no need for putting >> links into >> /service/. For that matter, why is there a /service/ at all in the >> toaster? >> I'd be inclined to ditch it. > > Probably there since the Miguel Beccari days and hasn't been removed. > You can rmdir it without side effect. >>> If someone wanted to disable a stock service permanently, will >> 'svc -d'>> persist after a reboot, or would they need to modify the qmail script >> to run it? > > No, 'svc -d' is a temporary disable. The only way to permanently > remove it is to rm the dir. I usually leave everything running and > just use the firewall to control access. > > For example on my system I don't allow imap or pop3 without ssl. Since > tcpserver doesn't take any resources unless it is in use, then there > is no worries. > > Erik > I suppose you could create an init script that runs 'svc -d' to disable whatever service you didn't want.
No no no no... this is not how you disable a service from running in daemontools. You can change it's normal state to "down" and leave it configured for future use. (like in a post i made last year explaining how to clear the read proctile status of daemontools from the processess list ... this one: readproctitle service errors: ..................... )
If you do a svstat on the directory you will see status listings saying normally up or down (only services in an abnormal state will list a message saying they are different from the norm)
svstat /var/qmail/supervise/*If you create a blank file named "down" in the service directory and then shut the service down its normal state will become "down" and will not run unless manually started... even after a reboot.
touch down /var/qmail/supervise/pop3-ssl/down svstat /var/qmail/supervise/pop3-ssl/service/pop3-ssl: up (pid 23468) 2 seconds, normally down <---- lets you know it's different from how it should be
svc -d /var/qmail/supervise/pop3-ssl /service/pop3-ssl: down 27 seconds svstat /var/qmail/supervise/pop3-sslGeorge S
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
