BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000324 [BusyBox] Other major always 07-05-05 19:12 02-12-08 02:44
Reporter zhuangyy View Status public  
Assigned To BusyBox
Priority normal Resolution no change required  
Status closed   Product Version 1.00
Summary 0000324: start-stop-daemon failed to start up syslogd
Description / # /sbin/start-stop-daemon --start --exec /sbin/syslogd -- -b 1 -L -s 50
/sbin/syslogd already running.
441

but the syslogd is not there and process 441 is not running.
Additional Information
Attached Files

- Relationships

- Notes
(0000268)
zhuangyy
07-05-05 23:01

syslogd is the applet in busybox
this bug also applies to crond applet in busybox
 
(0000394)
Jean-Baptiste Maillet
08-08-05 08:52

start-stop-daemon creates a pid file with the PID of the daemon process before it actually daemonize itself (fork) :
# ps | grep klogd
  258 root 572 S /sbin/klogd
  276 root 504 S grep klogd
# killall klogd
# /sbin/start-stop-daemon --start --make-pidfile --pidfile /root/klogdpid --exec /sbin/klogd
# cat /root/klogdpid
278
# ps | grep klogd
  279 root 572 S /sbin/klogd
  282 root 504 S grep klogd
# /sbin/start-stop-daemon --stop --pidfile /root/klogdpid --exec /sbin/klogd
no /sbin/klogd found; none killed.
 
(0004224)
vda
02-12-08 02:44

User error:

start-stop-daemon cannot prevent process from daemonizing (and in this case will think that process exited). You need to prevent that yourself (e.g. by giving it appropriate command-line option)
 

- Issue History
Date Modified Username Field Change
07-05-05 19:12 zhuangyy New Issue
07-05-05 23:01 zhuangyy Note Added: 0000268
08-08-05 08:52 Jean-Baptiste Maillet Note Added: 0000394
02-12-08 02:44 vda Status assigned => closed
02-12-08 02:44 vda Note Added: 0004224
02-12-08 02:44 vda Resolution open => no change required


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker