On Wed, 28 May 2008 00:38:32 -0430 Jose Luis Rivas Contreras <[EMAIL PROTECTED]> wrote:
> Daniel Dickinson wrote: > > from my working /etc/init.d/gkrellmd > > > > start) > > echo -n "Starting $DESC: " > > start-stop-daemon --start --quiet \ > > --exec $DAEMON -- --pidfile /var/run/$NAME.pid > > $DAEMON_OPTS echo "$NAME." > > ;; > > stop) > > echo -n "Stopping $DESC: " > > start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid > > echo "$NAME." > > ;; > > You're right, this is already done in version -4 (see [1]) and is in my > pending to upload list to be sent to my sponsor, thanks :) > > [1] > http://git.ghostbar.ath.cx/?p=debian/gkrellm.git;a=blob;f=debian/gkrellmd.init;h=582862be71a15be800a8cb0a9c6f5f6e67c78358;hb=2b88609bb623e88475d1bef20a783a720fdad07e the latest commit [1] has a few problems (imho): - start should continue to use "--pidfile" (to insure two instances are not started by the init script) - start should continue to use DAEMON_OPTS (in addition to --pidfile) - restart's "start-stop-daemon --start" should be the same as start's [1] http://git.ghostbar.ath.cx/?p=debian/gkrellm.git;a=commitdiff;h=eb8a72f5e68a7c8ea7d88253cc08cd66bdfa0e18 example: start) echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \ --exec $DAEMON -- --pidfile /var/run/$NAME.pid $DAEMON_OPTS echo "$NAME." ;; corey -- [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

