[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-devel:14017] Re: start-stop-daemon
$BIpF#!w(BDebian$B$W$m$8$'$/$H$G$9!#(B
At Fri, 6 Apr 2001 15:52:47 +0900,
Masamichi Goudge wrote:
> >>>>> In [debian-devel : No.14014]
> >>>>> Masamichi Goudge <MGuuji@xxxxxxxxxxxx> wrote:
>
> $B$*$l(B> solid-pop3d$B$r(Bdaemon mode$B$GF0$+$=$&$H!"2<5-$N$h$&$J(B /etc/init.d/solid-pop3d
> $B$*$l(B> $B$r(B webmin$B$r;29M$K=q$$$?$N$G$9$,!"(Bstart$B;~$K<B:]$N(Bpid$B$H(B /var/run/spop3d.pid$B$K(B
> $B$*$l(B> $B=q$+$l$k(Bpid number$B$,0[$J$C$F$7$^$$!"BP1~$K6lN8$7$F$$$^$9!#(B
> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> DAEMON=/usr/sbin/solid-pop3d
> DAEMONCONF=/etc/spop3d.conf
$B$A$J$_$K%*%W%7%g%s;XDj$O(B"-f /etc/spop3d.conf"$B$K$7$J$$$H$$$1$J$$$+$J!#(B
$B$G!"(Bsolid-pop3d$B$N%=!<%9$N(Bstandalone.c$B$,8F$P$l$F$k$h$&$@$C$?$N$G8+$F$_$?(B
$B$N$G$9$,!"%b%m$K(Bfork()$B$7$F$^$9$M!#(B
$BD>A0$K(B start-stop-daemon $B$O(B --pidfile $B$G;2>H$5$l(B $B$k(B
$B%U%!(B $B%$%k$r:n@.$7!"G[CV$9$k!#$3$N%U%!%$%k$O%W%m%0%i(B
$B%`$NDd;_;~$K:o=|$5$l$J$$$3$H$KCm0U$5$l$?$$!#(B $BCm(B $B0U(B:
$B$3(B $B$N%*%W%7%g%s$OF0:n$7$J$$>l9g$,$"$k!#FC$K!"%W%m%0(B
$B%i%`$N<B9T;~$K$=$N%a%$%s%W%m%;%9$+$i(B fork $B$9$k$h(B $B$&(B
$B$J(B $B%W%m%0%i%`$G$O@5$7$/F0:n$7$J$$!#$3$N$?$a!"DL>o$O(B
--background $B%*%W%7%g%s$HJ;MQ$9$k>l9g$K$N$_M-MQ$G$"(B
$B$k!#(B
$B$N$H$*$j!"(Bstart-stop-daemon$B$G$O$3$l$O4IM}$G$-$J$$$G$7$g$&!#(B
solid-pop3d$B$N(Bstandalone.c$B$N(B
switch (fork()) {
...
};
$B$N$"$H$K$G$b(B/var/run/spop3d.pid$B$r:n$C$F$3$l$K(Bgetpid()$B$N7k2L$r=q$-=P$9$h(B
$B$&$K$9$k%k!<%A%s$rF~$l$k$H$$$&$"$?$j$,2r7hJ}K!$G$7$g$&$+!#(B
--
$BIpF#(B $B7r;V!w(BDebian/JP$B%W%m%8%'%/%H(B (kmuto@debian.org, kmuto@debian.or.jp)
$BF|K\(BLinux$B6(2q(B (kmuto@xxxxxxxxxxx)
$BF|K\$$$=$?!<$M$C$H6(2q(B (kmuto@xxxxxxxxxxxxx)
$BM-8B2q<R%H%C%W%9%?%8%*(B (kmuto@xxxxxxxxxxxxxxx)
URI: http://www.topstudio.co.jp/~kmuto/ (Debian$B$JOCBj$J$I(B)