Discussion:
qmail プロセスの安全な停止方法は?
(too old to reply)
Masuda
2003-08-07 11:20:15 UTC
Permalink
$B$^$9$@$H?=$7$^$9!#(B
$B!V%a!<%k$r>C<:$5$;$:$K!"(Bqmail$B$N%W%m%;%9$r0BA4$KDd;_$5$;$kJ}K!!W(B
$B$K$D$$$F<ALd$5$;$FD:$-$?$$$H;W$$$^$9!#(B

qmail$B%W%m%;%9$NDd;_$O(B
$B!V(Bps -aef | grep qmail$B!WEy$+$iF@$i$l$?%W%m%;%9$r!"(B
$BA4$F(Bkill -TERM$B$9$k$H$$$&J}K!$,$"$k$H;W$$$^$9!#(B

$B$7$+$7!"$3$NJ}K!$G$O%a!<%k$NAw?.!&<u?.Cf!"(Bqueue$B$XEPO?Cf$N(B
qmail-smtpd$B!&(Bqmail-send$B$d(Bqmail-queue$B%W%m%;%9$r6/@)E*$KDd;_$5$;$F$7$^$$!"(B
$B%a!<%k$N>C<:$d=EJ#Aw?.$,5/$3$N$G$O$J$$$+$H?4G[$7$F$$$^$9!#(B

qmail-send$B$O(BTERM$B%7%0%J%k$rAw$k$3$H$G0BA4$KDd;_$5$;$i$l$k$h$&$G$9$,!"(B
(http://man.qmail.jp/jman8/qmail-send.html)
qmail-smtpd$B$K$D$$$F$O>pJs$r8+$D$1$k$3$H$,$G$-$^$;$s$G$7$?!#(B

$B$40U8+!">pJs$J$I!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B

## $B;d$J$j$K9M$($?J}K!(B

$B;d$O!"(Bqmail-smtpd$B$r(Btcpserver,multilog$B$H(B
$BAH$_9g$o$;$FF0$+$7$F$$$^$9!#(B
-------
tcpserver -HR -u 104 -g 100 -x /etc/tcp.smtp.cdb \
0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | \
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t \
/var/log/smtpd &
-------

$B0J2<$N$h$&$J<j=g$G0BA4$K(Bqmail-smtpd$B$rDd;_$5$;$i$l$k$+!)(B
$B$H9M$($F$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B
$B$7$+$7!"$3$NJ}K!$G$O%a!<%k$NAw?.!&<u?.Cf!"(Bqueue$B$XEPO?Cf$N(B
$B%a!<%k$N>C<:$d=EJ#Aw?.$,5/$3$N$G$O$J$$$+$H?4G[$7$F$$$^$9!#(B
qmail-send$B$O(BTERM$B%7%0%J%k$rAw$k$3$H$G0BA4$KDd;_$5$;$i$l$k$h$&$G$9$,!"(B
(http://man.qmail.jp/jman8/qmail-send.html)
qmail-smtpd$B$K$D$$$F$O>pJs$r8+$D$1$k$3$H$,$G$-$^$;$s$G$7$?!#(B
$B$40U8+!">pJs$J$I!"$h$m$7$/$*4j$$$$$?$7$^$9!#(B
## $B;d$J$j$K9M$($?J}K!(B
$B;d$O!"(Bqmail-smtpd$B$r(Btcpserver,multilog$B$H(B
$BAH$_9g$o$;$FF0$+$7$F$$$^$9!#(B
-------
tcpserver -HR -u 104 -g 100 -x /etc/tcp.smtp.cdb \
0 smtp /var/qmail/bin/qmail-smtpd 2>&1 | \
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t \
/var/log/smtpd &
-------
$B0J2<$N$h$&$J<j=g$G0BA4$K(Bqmail-smtpd$B$rDd;_$5$;$i$l$k$+!)(B
$B$H9M$($F$$$^$9!#(B
-------
1.tcpserver$B$N%W%m%;%9$r(Bkill$B%3%^%s%I$GDd;_(B.
$B!!$3$l$K$h$j(BSMTP$B%3%M%/%7%g%s$r<u$1IU$1$J$/$J$k(B.
2.$B=hM}Cf$N(Bqmail-smtpd$B$d(Bqmail-queue$B%W%m%;%9$,A4$F=*N;$9$k$^$GBT$D(B
3.ps$B%3%^%s%I$G>e5-%W%m%;%9$,=*N;$7$F$$$k$3$H$r3NG'(B
-------
--
$B=EED!!AaID(B

'------------------------------------------------------------
'***@arksystems.co.jp <$B=EED(B $BAaID(B>
'ARK Systems Co., Ltd. : $B3t<02q<R%"!<%/%7%9%F%`(B
'Tel. 03-3666-8140 Fax. 03-3666-8143
'$B")(B103-0026 $BEl5~ETCf1{6hF|K\663uD.(B8-8 $BCfEg%S%k(B6F
'------------------------------------------------------------
Susumu Masuda
2003-08-11 02:42:20 UTC
Permalink
$B$^$9$@$G$9!#(B

$B$42sEz$"$j$,$H$&$4$6$$$^$9!#(B
$B;d$O(Btcpserver$B$r;H$C$F$$$^$9$N$G!"(Btcpserver$B$G(B
$B$465<xD:$$$?$N$HF1MM$JJ}K!$r;n$7$F$_$h$&$+$H;W$$$^$9!#(B

$B$"$j$,$H$&$4$6$$$^$7$?!#(B
Post by 重田 早苗
$B=EED$H?=$7$^$9!#(B
#$B4{B8$N%;%C%7%g%s$O;D$k$O$:!#(B
$B$=$N8e!"=<J,$J;~4V(B(1$BJ,0L(B)$B;~4V$r$*$$$F!"(Bnetstat$B%3%^%s%I$G4{B8(B
$B%;%C%7%g%s$N=*N;$r3NG'$7!"0l8F5[8e(B(10$BIC8e(B)$B!"4N?4$N%W%m%;%9$r(B
SIGTERM$B$GDd;_$5$;$k$H(B....
$BLLE]$G$9$,!"8z2L$O$-$A$s$H$"$j$^$7$?!#(B
#$B%3%s%5%k!&%l%Y%k$N2rEz$G$OL5$$$C$9$M!#(B
Tietew
2003-08-11 04:59:33 UTC
Permalink
On Mon, 11 Aug 2003 11:49:38 +0900
In article <***@ci03402.arksystems.co.jp>
[[linux-users:100315] Re: qmail $B%W%m%;%9$N0BA4$JDd;_J}K!$O!)(B]
Post by Susumu Masuda
$B$42sEz$"$j$,$H$&$4$6$$$^$9!#(B
$B;d$O(Btcpserver$B$r;H$C$F$$$^$9$N$G!"(Btcpserver$B$G(B
$B$465<xD:$$$?$N$HF1MM$JJ}K!$r;n$7$F$_$h$&$+$H;W$$$^$9!#(B
qmail$B$O(Bsendmail$B$H0c$C$F!"4v$D$+$N5!G=$KJ,N%$7$F%W%m%;%9$r(B
$BN)$A>e$2$F$$$k$N$G!"0[>o7O$O$+$J$j<e$$$HH=CG$7$F:9$7;Y$((B
$B$J$$$H;W$$$^$9!#(B
$B$=$s$J$3$H$O$J$$$G$9!#$I$l$+$N%W%m%;%9$,0[>o=*N;$9$l$P!$O":?E*$K(B
$B%(%i!<$H$J$j!$:G0-%a!<%k$NFs=EAw?.$G:Q$`$h$&@_7W$5$l$F$$$^$9!#(B
http://man.qmail.jp/jblurb/blurb.html


$***@_7W>e$O(B qmail $B4XO"%W%m%;%9$r$$$-$J$j(B kill $B$7$F$b%a!<%k$O>C<:$7(B
$B$^$;$s!#$?$@!$$=$l$G$O5$;}$A$,0-$$$G$7$g$&$+$i!$(Btcpserver $B$@$1;_(B
$B$a$F4{B8%;%C%7%g%s$N=*N;BT$A$r$9$kK!$,$h$$$G$7$g$&!#(B
$B$h$jK|A4$r4|$9$J$i(B:
kill -STOP => $B4{B8%;%C%7%g%s=*N;BT$A(B => kill -TERM => kill -CONT



$B!=(B[ Tietew ]$B!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=!=(B
Mail: ***@tietew.net / ***@raug.net
Web : http://www.tietew.net/ Tietew Windows Lab.
PGP fingerprint: 26CB 71BB B595 09C4 0153 81C4 773C 963A D51B 8CAA
重田 早苗
2003-08-11 05:40:05 UTC
Permalink
$B=EED$G$9!#(B
Post by Tietew
$B$=$s$J$3$H$O$J$$$G$9!#$I$l$+$N%W%m%;%9$,0[>o=*N;$9$l$P!$O":?E*$K(B
$BBP1~$7$F$$$k$3$H$O%=!<%9$r8+$l$P0lL\NFA3$G$9$M!#(B
Post by Tietew
$B$^$;$s!#(B
$B$3$l$OAwC#3NG'$G$O$J$/!"(BSMTP$B$NAw?.>e$NDj5A$+$i8@$C$F$H$$$&$3$H(B
$B$G$9$h$M!#(B
$B$"$/$^$G!":#2s$N$*OC$O(B"$B4p447O(B"$B$NOC$G$"$j!"AwC#3NG'$OL5M}$G$b!"(B
$BDL>o$NAw?.3NG'$,<h$l$?>e$G$N=*N;=hM}$N%3%_%C%H$H$$$&4QE@$G(B
$B=q$$$F$$$^$9!#(B

$B$D$^$j!"0lHLE*$J%a!<%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