From: Jeff G. <jg...@kr...> - 2008-11-06 22:43:39
|
My answer to one of the questions is inserted below.. Jeff G. Kevin Brewster wrote: > Hi, > I'm new to all this so my apologies if this is a dumb question.. > > Why is there no simple way to stop/start/reload motion from the command > line besides sending kill signals? > > It would be nice if it was like apache or mysql where you can type > "/etc/init.d/apache start|stop|restart" > > If I wanted to make a script that started/stopped motion, how do I get > the pid to then use in "kill -s SIGHUP pid"? > Motion creates a motion.pid file with the PID of the process. You'd do something like "kill -HUP `cat motion.pid`" to use the file. Where the motion.pid file is stored will depend on how the app was configured before it was built. Make sure that the account that starts motion has write access to the directory! > > > Thanks, > Kevin Brewster > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Motion-user mailing list > Mot...@li... > https://lists.sourceforge.net/lists/listinfo/motion-user > http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome > |