[Gllug] RE: [GLUG] Cron revisited

Tethys tet at accucard.com
Thu Oct 24 15:42:27 UTC 2002


Alain Williams writes:

>> 	echo $! > "$pidfile"
>
>That last line should be:
>	trap "rm -f $pidfile" 0		# Tidy up when we die
> 	echo $$ > "$pidfile"

No it shouldn't. Since we're kicking the java process off in the
background, we definitely *don't* want to remove the PID file when
the shell wrapper exits...

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list