aMule Bug Tracker - aMule
View Issue Details
0000911aMuleFeature Requestpublic2006-06-10 07:492006-09-09 09:41
EvaSDK 
 
normaltweakalways
closedopen 
 
 
Linux
0000911: amuled should write a pid file on Unix-like systems
well, all is in the title. amuled should be able to write a pid file to say /var/run/amuled.pid to ease the work for init scripts on Unix-like systems.

This a something like a 5 line patch, but I couldn't find the proper file to include the modification.
No tags attached.
Issue History
2006-06-10 07:49EvaSDKNew Issue
2006-06-10 07:49EvaSDKOperating System => Linux
2006-06-10 09:03JusTiCe8Note Added: 0002025
2006-06-10 17:15KryNote Added: 0002027
2006-06-13 19:48EvaSDKNote Added: 0002031
2006-06-26 14:51GonoszTopiNote Added: 0002046
2006-06-26 14:52GonoszTopiNote Added: 0002047
2006-06-26 14:53GonoszTopiNote Deleted: 0002047
2006-09-09 09:41GonoszTopiStatusnew => closed

Notes
(0002025)
JusTiCe8   
2006-06-10 09:03   
Should really amuled do that ?
On Debian-like system (and maybe others) there is tool called "start-stop-daemon" used in init script which is able to create pid file on demand.
(0002027)
Kry   
2006-06-10 17:15   
Yeah, it should be up to the caller to make such files.
(0002031)
EvaSDK   
2006-06-13 19:48   
start-stop-daemon creates a pid file before the daemon forks, so the pid file is wrong and that's why the daemon should take care of this itself.
(0002046)
GonoszTopi   
2006-06-26 14:51   
The daemon shouldn't fork when started by start-stop-daemon