Re: Daemontool-izing MySQL

"Clemens Fischer" <[email protected]>
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
* 2003-08-16 Dmitry Volkoff:

> My run-script allows to control mysqld via `svc -t mysqld` and `svc
> -d mysqld`. You need watchpid for that.

what's the story with `watchpid'?  i can't seem to find copies of it,
or it moved or whatever?

> killall -9 mysqld >& /dev/null

isn't this a little heavy?  what do you use the supervisor for if you
need a statement like this?

> envuidgid mysql envdir ./env sh -c '
>  ...
> ' &

why do you background the main job in a run script??

> pidfile=/opt/service/mysqld/data/`cat env/PIDFILE`
> sleep 5
> exec /usr/local/bin/watchpid `cat $pidfile`
> killall -9 mysqld

this final killall is never reached!

  clemens
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.