Is "package" the same as directory name? I tried to run one svc command for each 
directory/package in /service, but only a few of the processes died. (ignore the 
grep-processes)

Before:
        [EMAIL PROTECTED]:/var > ps -ef | grep qmail
        root       536   534  0 May24 ?        00:00:00 supervise qmail-send
        root       538   534  0 May24 ?        00:00:00 supervise qmail-smtpd
        root       549   536  0 May24 ?        00:00:00 /bin/sh /var/qmail/rc
        qmaild     551   538  0 May24 ?        00:00:02 /usr/local/bin/tcpserver -v -R 
-l abc.def.no -x /etc/tcp.smtp.cdb -c 20 -u 504 -g 102 0 smtp 
/var/qmail/bin/qmail-smtpd
        qmaill     552   537  0 May24 ?        00:00:03 /usr/local/bin/multilog t 
/var/log/qmail
        qmaill     553   539  0 May24 ?        00:00:01 /usr/local/bin/multilog t 
/var/log/qmail/smtpd
        qmails     559   549  0 May24 ?        00:00:58 qmail-send
        root       560   559  0 May24 ?        00:00:01 qmail-lspawn ./Maildir/
        qmailr     561   559  0 May24 ?        00:00:00 qmail-rspawn
        qmailq     562   559  0 May24 ?        00:00:00 qmail-clean
        root      8415  8234  0 12:22 pts/3    00:00:00 grep qmail
        [EMAIL PROTECTED]:/var > ps -ef | grep binc
        root       544   540  0 May24 ?        00:00:00 tcpserver -c 100 -u 0 -g 0 -l 
abc -HDRP 0 143 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf -- /bin/checkpassword 
/opt/bincimap/bin/bincimapd
        root       545   541  0 May24 ?        00:00:00 multilog t n5 s1048576 
/var/opt/log/bincimap
        root       546   542  0 May24 ?        00:00:00 tcpserver -c 100 -u 0 -g 0 -l 
abc -HDRP 0 993 /opt/bincimap/bin/bincimap-up --logtype=multilog 
--conf=/etc/opt/bincimap/bincimap.conf --ssl -- /bin/checkpassword 
/opt/bincimap/bin/bincimapd
        root       550   543  0 May24 ?        00:00:00 multilog t n5 s1048576 
/var/opt/log/bincimap-ssl
        root      8417  8234  0 12:22 pts/3    00:00:00 grep binc

Commands:
        /usr/local/bin/svc -d /service/imaps
        /usr/local/bin/svc -d /service/imap
        /usr/local/bin/svc -d /service/qmail-smtpd
        /usr/local/bin/svc -d /service/qmail-send

After:
        [EMAIL PROTECTED]:/var > ps -ef | grep qmail
        root       536   534  0 May24 ?        00:00:00 supervise qmail-send
        root       538   534  0 May24 ?        00:00:00 supervise qmail-smtpd
        qmaill     552   537  0 May24 ?        00:00:03 /usr/local/bin/multilog t 
/var/log/qmail
        qmaill     553   539  0 May24 ?        00:00:01 /usr/local/bin/multilog t 
/var/log/qmail/smtpd
        qmails     559     1  0 May24 ?        00:00:58 qmail-send
        root       560   559  0 May24 ?        00:00:01 qmail-lspawn ./Maildir/
        qmailr     561   559  0 May24 ?        00:00:00 qmail-rspawn
        qmailq     562   559  0 May24 ?        00:00:00 qmail-clean
        root      8435  8234  0 12:27 pts/3    00:00:00 grep qmail
        [EMAIL PROTECTED]:/var > ps -ef | grep binc
        root       545   541  0 May24 ?        00:00:00 multilog t n5 s1048576 
/var/opt/log/bincimap
        root       550   543  0 May24 ?        00:00:00 multilog t n5 s1048576 
/var/opt/log/bincimap-ssl
        root      8433  8234  0 12:27 pts/3    00:00:00 grep binc

Are bincimap and qmail stopped correctly now? I does not seems like that. (It has to 
be stopped so I can migrate from maildir to imapdir)


BTW: I do not find the dosc for svc (tried man svc).
$MANPATH: 
/usr/local/man:/usr/share/man:/usr/X11R6/man:/usr/man:/usr/openwin/man:/var/qmail/man
Under /usr/share/man/man3 I have 22 different svc....gz files.

Roy

-----Original Message-----
From: Andreas Aardal Hanssen [mailto:[EMAIL PROTECTED] 
Sent: 7. juni 2004 11:57
To: Binc IMAP General
Subject: Re: [binc] How to stop and start qmail and bincimap when using daemontools?


On Mon, 7 Jun 2004, Roy J�rgensen wrote:
>What is the commands to stop and start bincimap and qmail when both is 
>using deamondtools. I just followed the install guides and the services 
>was started automatically after I linked the following directories to
>/service:

You will find this in the docs for the "svc" tool. Basically:

svc -u /service/<package> # start the service
svc -d /service/<package> # stop the service

Andy :-)

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."

Reply via email to