From: Ricardo J. B. <ric...@da...> - 2011-03-03 22:26:55
|
El Jue 03 Marzo 2011, Ricardo J. Barberis escribió: > El Jue 03 Marzo 2011, Giovanni Toraldo escribió: > > 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 > > Quick and dirty if you're on Linux (watch out for line-wrapping): > > lsof -X -n | grep $(awk '/^DATA_PATH/ {print $NF}' /etc/mfs/mfsmaster.cfg)/.mfsmaster.lock | awk '{print $2}' OK, now the not-so-dirty way ;) lsof -X -n -t $(awk '/^DATA_PATH/ {print $NF"/.mfsmaster.lock"}' /etc/mfs/mfsmaster.cfg) > > Every daemon that forks in background should write a PID somewhere, why > > mfs did not, even inside the lock file? > > > > Thanks. > > Cheers, Cheers again :) -- Ricardo J. Barberis Senior SysAdmin / ITI Dattatec.com :: Soluciones de Web Hosting Tu Hosting hecho Simple! |