Edgewall Software

Ticket #5410 (closed defect: duplicate)

Opened 18 months ago

Last modified 4 months ago

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

Changed 18 months ago by anonymous

  • summary changed from Tracd does not stay running when executed from a .sh script. to Tracd does not stay running as a daemon when executed with the --pidfile switch

Changed 18 months ago by cboos

Well, I think the --pidfile and the -r flag can't really be used together. Try without the -r flag to see if this improves the situation.

Changed 18 months ago by wlangford_AT_gmail.com

  • severity changed from normal to trivial

Ah, I see. It works perfectly now. =D...That needs to be better documented. When I was playing with it, tracd -d -r --pidfile=tracd, tracd responded that pidfile had to be an absolute path when using -s and -r. So, I figured that --pidfile and -r DID work together.

So, either --pidfile and -r need to be made to work together, or the built-in error messages need be clarified

Changed 4 months ago by Remy Blank <remy.blank@…>

  • cc remy.blank@… added

This is related #7049. I have provided a patch there that disallows --auto-reload together with --daemonize, which would solve this ticket as well.

Changed 4 months ago by cboos

  • status changed from new to closed
  • resolution set to duplicate
  • milestone 0.11.2 deleted

I think it's safe to close as duplicate of #7049.

Please reopen if I overlooked something.

Add/Change #5410 (Tracd does not stay running as a daemon when executed with the --pidfile switch)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.