Re: [htdig] start/stop/restart


Subject: Re: [htdig] start/stop/restart
From: Andrew Scherpbier (andrews@contigo.com)
Date: Fri Jul 21 2000 - 06:52:12 PDT


didier wrote:
>
> Franck Horlaville a écrit :
> >
> > #changed :
> > #/Local/Library/WebServer/htdig/bin/rundig -v -l -s -a > /var/log/htdig.log
> > #to :
> > /Local/Library/WebServer/htdig/bin/rundig -v -l -s -a &
> > echo $! > /var/run/htdig.pid
> >
> > problems :
> >
> > a/ Got to either remove -v or find the correct syntax to output to the logfile
> > b/ The pid I get is the one of my shell running rundig (obviously).
> > Problem : when I kill it htdig continues to run.
> >
> > solution : change rundig to call htdig with &
>
> > problem : how do I know it's dead so I can call htmerge ?
> >
> > idea : add this to rundig :
> >
> > while [the pid exists, syntax anyone ?]
> > do sleep 600
> > done
> > htmerge ...
> >
> Another way:
> htdig -l ... (whitout &)
> if test -f url_log then
> exit
> endif
> htmerge ...
>
> Where url_log is the file created when you killall htdig (db.log
> default).
>
> Didier

How about calling 'wait $!' before htmerge?
(In bash, type 'help wait' for info)

-- 
Andrew Scherpbier <andrews@contigo.com>
Contigo Software <http://www.contigo.com/>

------------------------------------ To unsubscribe from the htdig mailing list, send a message to htdig-unsubscribe@htdig.org You will receive a message to confirm this.



This archive was generated by hypermail 2b28 : Thu Jul 20 2000 - 20:52:49 PDT