Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0

Request #16981 One instance daemon only?
Submitted: 2010-01-08 16:06 UTC
From: martinjanda Assigned: martinjanda
Status: Closed Package: System_Daemon (version 0.9.2)
PHP Version: 5.2.5 OS: Debian Lenny, Linux 2.6.2
Roadmaps: (Not assigned)    
Subscription  


 [2010-01-08 16:06 UTC] martinjanda (Martin Janda)
Description: ------------ I'd like a new feature in System_Daemon to check whether the daemon once coming. I think this would great for more people. Expected result: ---------------- For example as setting parametr: System_Daemon::setOption("justOneInstance", true);

Comments

 [2010-01-08 16:10 UTC] kvz (Kevin van Zonneveld)
-Status: Open +Status: Bogus
Thank you for taking the time to write to us, but this is not a bug. This is already a Feature, since System_Daemon uses a lockfile (the pid file in /var/run/appname/), and so you can only run another instance if it has another name. It was designed this way.
 [2010-01-08 17:09 UTC] martinjanda (Martin Janda)
-Status: Bogus +Status: Closed -Assigned To: +Assigned To: martinjanda
Thanks for the quick reply. Yes, you are right. I start multiply direct with script. When i use /etc/ini.d/myscript start, it works as I want and what I expected. Thank you very much!