From: Thomas S H. <tha...@gm...> - 2011-03-03 15:56:26
|
Here is my Arch Linux init script, I am just using the pidof application to detect the pid, http://projects.archlinux.org/svntogit/community.git/tree/mfs/trunk/mfsmaster I think that using ps or pidof is a far more reliable way to detect if a process is running, since often times a crashed daemon can leave behind the pid file I hope this helps! On Thu, Mar 3, 2011 at 3:58 AM, Giovanni Toraldo <gt...@li...> wrote: > Il 03/03/2011 11:20, Michal Borychowski ha scritto: > > Hi! > > > > Please have a look at these two answers: > > http://www.moosefs.org/moosefs-faq.html#master-pid > > Uh, there isn't something more scripting friendly? :P > > Every daemon that forks in background should write a PID somewhere, why > mfs did not, even inside the lock file? > > Thanks. > > -- > Giovanni Toraldo > http://www.libersoft.it/ > > > ------------------------------------------------------------------------------ > Free Software Download: Index, Search & Analyze Logs and other IT data in > Real-Time with Splunk. Collect, index and harness all the fast moving IT > data > generated by your applications, servers and devices whether physical, > virtual > or in the cloud. Deliver compliance at lower cost and gain new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > moosefs-users mailing list > moo...@li... > https://lists.sourceforge.net/lists/listinfo/moosefs-users > |