Opened 11 years ago

Closed 11 years ago

#2366 closed bug (Duplicate)

Location of deluge pid file

Reported by: tuusjr Owned by:
Priority: minor Milestone: Future
Component: Console UI Version: other (please specify)
Keywords: Cc:


Currently, the deluge pid file is located under $XDG_CONFIG_DIR, which may force the user to manually delete the pid file on unclean exits, eg power failure. If the location of the pid file was to use the $XDG_RUNTIME_DIR specification, this situation would be remedied.

Exerpt of the standard according to

"The lifetime of the directory MUST be bound to the user being logged in. It MUST be created when the user first logs in and if the user fully logs out the directory MUST be removed. If the user logs in more than once he should get pointed to the same directory, and it is mandatory that the directory continues to exist from his first login to his last logout on the system, and not removed in between. Files in the directory MUST not survive reboot or a full logout/login cycle."

The specification ensures that a pid file will not survive on a reboot or login/logout cycle. Thus, using $XDG_RUNTIME_DIR remedies this situation.

Change History (1)

comment:1 by Calum, 11 years ago

Resolution: Duplicate
Status: newclosed

Duplicate #2234

Note: See TracTickets for help on using tickets.