Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
February 09, 2012, 01:37:44 PM
News: Welcome to GLomation peer support forum
Pages: [1]
Topic Tools  
Read November 03, 2010, 07:36:46 PM #0
patrick

start-stop-daemon --pidfile does not create pid file

I have the following lines in one of my /etc/init.d scripts to start a service:

Code:
start-stop-daemon --start --quiet -c www --background --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \                                                                                     
                || return 1                                                                                                                                                                             
        start-stop-daemon --start --quiet -c www --background --pidfile $PIDFILE --exec $DAEMON -- \                                                                                                     
                $DAEMON_ARGS \                                                                                                                                                                           
                || return 2                                     

This is pretty much straight out of the provided skeleton file apart from the _-c www_ option.

The problem is that the pid file is not created, the PIDFILE var is correct but start-stop-daemon seems to ignore the --pidfile option. Anyone else seen this or know of another way I can create the pid file.
 
Read November 04, 2010, 04:45:35 PM #1
patrick

Re: start-stop-daemon --pidfile does not create pid file

I just worked it out myself, I needed to add a -m or --make-pidfile option also.
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re