Ticket #5410 (closed defect: duplicate)
Tracd does not stay running as a daemon when executed with the --pidfile switch
| Reported by: | wlangford@… | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | web frontend/tracd | Version: | devel |
| Severity: | trivial | Keywords: | |
| Cc: | remy.blank@… |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


