From: "Sergey Y. Afonin" <asy@altlinux.ru> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: [devel] start-stop-daemon: непонятно , на какие грабли я наступил... Date: Wed, 9 May 2007 18:23:25 +0500 Message-ID: <200705091823.26048.asy@altlinux.ru> (raw) Приветствую. Почему-то start-stop-daemon не всегда обнаруживает запущенный процесс. # start-stop-daemon --stop --exec /usr/sbin/mailfromd-clamav --pidfile /var/lib/mailfromd-clamav/mailfromd.pid No /usr/sbin/mailfromd-clamav found running; none killed. # ps ax|grep mailfromd-clamav 28793 ? Ss 0:00 /usr/sbin/mailfromd-clamav --state-directory=/var/lib/mailfromd-clamav --remove --group=mail -v ehlo_domain srv6.kraft-s.ru /etc/mailfromd/mailfromd-clamav.rc # cat /var/lib/mailfromd-clamav/mailfromd.pid 28793 При этом, service mailfromd-clamav start/stop/restart работает. И start-stop-daemon, естественно, тоже, но до отработки вот такого скрипта в %post: for serv_name in `ls /usr/sbin/mailfrom* | sed -e "s|.*/\(.*\)|\1|"` ; do service $serv_name rmdb &>/dev/null ||: %post_service $serv_name done Вывод получается такой: 1: mailfromd ##################################### [100%] Stopping mailfromd service: [ DONE ] Starting mailfromd service: [ DONE ] Service mailfromd-clamav is not running.[PASSED] Starting mailfromd-clamav service: [FAILED] # ls -l /usr/sbin/mailfrom* -rwxr-xr-x 1 root root 317224 Май 9 17:23 /usr/sbin/mailfromd lrwxrwxrwx 1 root root 9 Май 9 17:44 /usr/sbin/mailfromd-clamav -> mailfromd Теперь вот # killall mailfromd-clamav # service mailfromd-clamav start Starting mailfromd-clamav service: [ DONE ] # ps ax|grep mailfromd-clamav 32460 ? Ss 0:00 /usr/sbin/mailfromd-clamav --state-directory=/var/lib/mailfromd-clamav --remove --group=mail -v ehlo_domain srv6.kraft-s.ru /etc/mailfromd/mailfromd-clamav.rc # cat /var/lib/mailfromd-clamav/mailfromd.pid 32460 # start-stop-daemon --stop --exec /usr/sbin/mailfromd-clamav --pidfile /var/lib/mailfromd-clamav/mailfromd.pid # И start-stop-daemon замечательно сработал... -- С уважением, Сергей Афонин
next reply other threads:[~2007-05-09 13:23 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-05-09 13:23 Sergey Y. Afonin [this message] 2007-05-09 16:37 ` Sergey Y. Afonin 2007-05-09 16:56 ` Yuriy Kashirin 2007-05-09 17:51 ` Dmitry V. Levin 2007-05-09 17:50 ` Dmitry V. Levin 2007-05-09 18:36 ` Sergey Y. Afonin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=200705091823.26048.asy@altlinux.ru \ --to=asy@altlinux.ru \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git