[qmailtoaster] How to disable certain services
Hi all, I want to disable certain services in my toaster like POP3-SSL...How can I do that ?? Anand - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
Hello stop qmail delete the services rm -rf /var/qmail/supervise/name_of_service restart qmail you need to do it each time you re-install qmail-toaster-1.03-*.rpm -P K Anand wrote: Hi all, I want to disable certain services in my toaster like POP3-SSL...How can I do that ?? Anand - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
- Original Message - From: Philip [EMAIL PROTECTED] To: qmailtoaster-list@qmailtoaster.com Sent: Tuesday, February 13, 2007 4:39 PM Subject: Re: [qmailtoaster] How to disable certain services Hello stop qmail delete the services rm -rf /var/qmail/supervise/name_of_service restart qmail you need to do it each time you re-install qmail-toaster-1.03-*.rpm Apart from deleting, is there any other way ? Anand - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [qmailtoaster] How to disable certain services
Apart from deleting, is there any other way ? Yep, you can do it temporarily: svc -d /var/qmail/supervise/NAMEOFSERVICE This will disable NAMEOFSERVICE temporarily You can bring it up again with: svc -u /var/qmail/supervise/NAMEOFSERVICE See http://cr.yp.to/daemontools/svc.html BEGIN:VCARD VERSION:2.1 N:Sánchez Martín;David FN:[EMAIL PROTECTED] ([EMAIL PROTECTED]) ORG:E2000 Financial Investments, S.A.;Centro de Nuevas Tecnologías TITLE:Administrador de Sistemas TEL;WORK;VOICE:902196177 ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA;Asturias;;;Espa=F1a LABEL;WORK;ENCODING=QUOTED-PRINTABLE:Agust=EDn Bravo 17 2=BA B=0D=0A33120 PRAVIA=0D=0AAsturias=0D=0AEspa=F1a URL;WORK:http://www.e2000.es EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20060705T152542Z END:VCARD smime.p7s Description: S/MIME cryptographic signature
RE: [qmailtoaster] How to disable certain services
Apart from deleting, is there any other way ? Yep, you can do it temporarily: svc -d /var/qmail/supervise/NAMEOFSERVICE This will disable NAMEOFSERVICE temporarily You can bring it up again with: svc -u /var/qmail/supervise/NAMEOFSERVICE See http://cr.yp.to/daemontools/svc.html The standard daemontools way is to create a symlink under the $service_dir pointing to the service dir . In this way you don't need to delete ALL the service dir , just the symlink , so each time you want to re-enable the service all you need to do is to remake the symlink to it . Toaster seems not to follow this standard way . Bye, Davide - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
Thanx for the replies guys. Anand - Original Message - From: Buzzz [EMAIL PROTECTED] To: qmailtoaster-list@qmailtoaster.com Sent: Tuesday, February 13, 2007 4:46 PM Subject: RE: [qmailtoaster] How to disable certain services Apart from deleting, is there any other way ? Yep, you can do it temporarily: svc -d /var/qmail/supervise/NAMEOFSERVICE This will disable NAMEOFSERVICE temporarily You can bring it up again with: svc -u /var/qmail/supervise/NAMEOFSERVICE See http://cr.yp.to/daemontools/svc.html The standard daemontools way is to create a symlink under the $service_dir pointing to the service dir . In this way you don't need to delete ALL the service dir , just the symlink , so each time you want to re-enable the service all you need to do is to remake the symlink to it . Toaster seems not to follow this standard way . Bye, Davide - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.441 / Virus Database: 268.17.37/682 - Release Date: 2/12/2007 1:23 PM - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
Buzzz wrote: Apart from deleting, is there any other way ? Yep, you can do it temporarily: svc -d /var/qmail/supervise/NAMEOFSERVICE This will disable NAMEOFSERVICE temporarily You can bring it up again with: svc -u /var/qmail/supervise/NAMEOFSERVICE See http://cr.yp.to/daemontools/svc.html The standard daemontools way is to create a symlink under the $service_dir pointing to the service dir . In this way you don't need to delete ALL the service dir , just the symlink , so each time you want to re-enable the service all you need to do is to remake the symlink to it . Toaster seems not to follow this standard way . Bye, Davide EE/Nick, Is there some reason the toaster doesn't do things the standard way? I've been wondering what the empty /service directory was all about. ;) -- -Eric 'shubes' - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
EE/Nick, Is there some reason the toaster doesn't do things the standard way? I've been wondering what the empty /service directory was all about. ;) -- -Eric 'shubes' Well it is easily updatable: just move the scan of the service dir from /var/qmail/supervise to /service and link the service in this dir . Maybe the qmail script must be update as well . bye, Davide - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
Hey ES, EE/Nick, Is there some reason the toaster doesn't do things the standard way? I've been wondering what the empty /service directory was all about. ;) To call anything that DJB does standard is a misnomer. That said, we put everything in /var/qmail/supervise to make it easier to backup and restore configurations. Having to go to many different directories is a pain in the arse. Erik - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
Erik A. Espinoza wrote: Hey ES, EE/Nick, Is there some reason the toaster doesn't do things the standard way? I've been wondering what the empty /service directory was all about. ;) To call anything that DJB does standard is a misnomer. I strongly agree with that statement! That said, we put everything in /var/qmail/supervise to make it easier to backup and restore configurations. Having to go to many different directories is a pain in the arse. I figured there was a good reason. 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. 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? Erik -- -Eric 'shubes' - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
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 - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
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. -- -Eric 'shubes' - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
Indeed. You can put that in rc.local. Erik 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. -- -Eric 'shubes' - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
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-ssl George S - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [qmailtoaster] How to disable certain services
George Sweetnam wrote: 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-ssl George S Congratulations George, you scored (touch down - I love it)!. This is really good stuff for us daemontools newbs. I'm thinking this really needs to be on the wiki. Would anyone like to have a go at adding it? Thanks George. You hit this one out of the park (to mix metaphors). -- -Eric 'shubes' - QmailToaster hosted by: VR Hosted http://www.vr.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]