Natanael Copa wrote: > On Tue, 2007-03-27 at 13:28 +0200, [EMAIL PROTECTED] wrote: >> Natanael Copa wrote: >>> On Tue, 2007-03-27 at 09:16 +0200, [EMAIL PROTECTED] wrote: >>>> Hello, >>>> >>> Use start-stop-daemon -n or with pidfiles. >>> >> Ok, thanx. >> I've tried -m -p /var/lock/pidfile and strange thing happens - actual >> PID number recoreded in the pidfile doesn't belong to the daemon being >> started. It belongs to the process that already finished. Eg. >> >> # start-stop-daemon --start -m -p /var/lock/crond.pid -x /sbin/crond -- >> -c /etc/crontab/ >> >> # ps >> ... >> 4274 root 192 S /sbin/crond -c /etc/crontab/ >> >> # cat /var/lock/crond.pid >> 4272 >> >> Note: I observed that this doesn't happen with dropbear client but with >> busybox applets - crond, httpd, ... > > Its normal. process forks, child continues, parent exits and the pid of > parent get recorded. > > try start-stop-daemon -n >
It doesn't help or I don't know how to use it :/ # start-stop-daemon --start -n httpd -m -p /var/lock/httpd.pid -- -c /etc/bbhttpd.conf -h /www/pages/ start-stop-daemon: -S needs -x or -a # start-stop-daemon --start -n httpd -m -p /var/lock/httpd.pid -x /sbin/httpd -- -c /etc/bbhttpd.conf -h /www/pages/ # cat /var/lock/httpd.pid 4610 # ps | grep http 4612 root 104 S /sbin/httpd -c /etc/bbhttpd.conf -h /www/pages/ # start-stop-daemon --start -n httpd -m -p /var/lock/httpd.pid -a /sbin/httpd -- -c /etc/bbhttpd.conf -h /www/pages/ # cat /var/lock/httpd.pid 4618 # ps | grep http 4620 root 104 S /sbin/httpd -c /etc/bbhttpd.conf -h /www/pages/ regards, hinko -- ČETRTA POT, d.o.o., Kranj Planina 3 4000 Kranj Slovenia, Europe Tel. +386 (0) 4 280 66 03 E-mail: [EMAIL PROTECTED] Http: www.cetrtapot.si _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
