From: Aleksey S. <al...@si...> - 2013-07-09 06:41:15
|
Hello! I added script K20mfsmount to rc0 and rc6 and it seems that all reboots going fine. But how do you check for service is working. Maybe someone have auto restart script? С уважением, Алексей Силк With best regards, Aleksey Silk +7 (981) 849-12-36 al...@si... skype - rootiks 2013/7/9 Aleksey Silk <al...@si...> > Hello! > > How do you guys start mfsmaster in linux? > Now I use this script: > > root@am-01:/etc/init.d# cat mfsmaster > #!/bin/sh > > DAEMON=/usr/sbin/mfsmaster > PIDFILE=/var/lib/mfs/.mfsmaster.lock > > do_start () { > echo "Starting MFS Master service." > start-stop-daemon --start --exec $DAEMON --pidfile $PIDFILE > > } > > do_stop () { > echo "Stopping MFS Master service." > start-stop-daemon --stop --exec $DAEMON > rm $PIDFILE > } > > do_restart () { > echo "Restarting MFS Master service." > do_stop > do_start > } > > case "$1" in > > start) > do_start > ;; > > stop) > do_stop > ;; > > restart) > do_restart > ;; > > *) > echo "Usage: /etc/init.d/mfsmaster {start|stop|restart}" > exit 1 > ;; > > esac > exit 0 > > But sometimes it fails to start and I have 2 metadata.mfs.back files and > it fails to start due there is not metadata.mfs > > Maybe I'm doing something wrong or it is time to patch some source ... > > > > > > > С уважением, Алексей Силк > With best regards, Aleksey Silk > > +7 (981) 849-12-36 > al...@si... > skype - rootiks > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > moosefs-users mailing list > moo...@li... > https://lists.sourceforge.net/lists/listinfo/moosefs-users > > |