Tracd does not stay running as a daemon when executed with the --pidfile switch
|Reported by:||Owned by:||Jonas Borgström|
I have a .sh script run as below:
$ su tracuser
$ sh Start.sh
The script contains: (Among other starting processes)
su -c "rm -f /home/will/Desktop/tracd && echo '55' > /home/will/Desktop/tracd && chmod 777 /home/will/Desktop/tracd" tracd -d -p 8080 -s -r --auth=trac,/path/to/htdigest,trac /path/to/tracenv --pidfile=/home/will/Desktop/tracd
The script puts out the pid to the designated file, but when I cheeck the running processes, tracd is nowhere to be found… (
ps -ax|grep "tracd")
Running tracd from outside the sh script with the same switches produces the same effect, except that the pidfile is deleted almost immediately after creation.
Running tracd with either method without the
--pidfile switch results in the daemon running correctly.
Change History (5)
comment:1 by , 15 years ago
|Summary:||Tracd does not stay running when executed from a .sh script. → Tracd does not stay running as a daemon when executed with the --pidfile switch|