Edgewall Software

Ticket #4531 (closed defect: fixed)

Opened 23 months ago

Last modified 22 months ago

relative paths don't work when tracd is daemonized

Reported by: anonymous Owned by: mgood
Priority: normal Milestone: 0.10.4
Component: web frontend/tracd Version: 0.10.3
Severity: minor Keywords: tracd
Cc:

Description

Tracd works erratically when daemonized if the directory parameter ( -e option ) is a relative path.

This is the intended behaviour, by looking at the code, but documentation should explicitly mention that relative paths do not work when tracd is daemonized.

Attachments

Change History

  Changed 23 months ago by mgood

  • keywords documentation removed
  • owner changed from jonas to mgood
  • summary changed from tracd fails when daemonized to relative paths don't work when tracd is daemonized
  • status changed from new to assigned
  • milestone set to 0.10.4

Yes, the problem comes from the daemonizing process changing the working directory to the root directory. However, I think we can translate the path options to absolute paths before daemonizing to avoid this altogether.

  Changed 22 months ago by mgood

  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r4721 and r4722.

  Changed 22 months ago by cedric@…

  • status changed from closed to reopened
  • resolution fixed deleted

This is still a problem with --basic-auth arguments, if the path to htpasswd is relative.

  Changed 22 months ago by mgood

  • status changed from reopened to closed
  • resolution set to fixed

Ok, the auth and parent dir paths have also been fixed in r4726 and r4727.

follow-up: ↓ 6   Changed 22 months ago by mgood

The --pidfile option is now also fixed in r4728:r4729 and r4730.

I also added some sanity checking, since the relative paths can't easily be corrected when using --daemonize with --autoreload.

in reply to: ↑ 5   Changed 22 months ago by cboos

Replying to mgood:

... when using --daemonize with --autoreload.

Does that even make sense? If not, I'd suggest to make them mutually exclusive, so they're not mixed by accident.

Add/Change #4531 (relative paths don't work when tracd is daemonized)

Author



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