[OpenSIPS-Devel] SF.net SVN: opensips:[5086] branches/1.4/daemonize.c
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Sat Dec 20 18:46:17 CET 2008
Revision: 5086
http://opensips.svn.sourceforge.net/opensips/?rev=5086&view=rev
Author: bogdan_iancu
Date: 2008-12-20 17:46:17 +0000 (Sat, 20 Dec 2008)
Log Message:
-----------
backport from trunk (rev #5085):
- fixed bug in creating the pid file : if opensips is changing user, it needs also to change the owner of the pid file, so that it will be able to deleted at the end.
Affected scenario :
1) opensips is launched by root but configured to run as opensips user
2) pid file is created as user root -> pid file is owned by root
3) opensips deamonizes and runs as opensips
4) opensips shutdown and, as user opensips is not able to remove pid file which is owned by root
The fix comes at step 3), when opensips is doing chown on pidfile to switch it to opensips owner.
Revision Links:
--------------
http://opensips.svn.sourceforge.net/opensips/?rev=5085&view=rev
Modified Paths:
--------------
branches/1.4/daemonize.c
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Devel
mailing list