Re: apache and mysqld


Subject: Re: apache and mysqld
From: Nathan T Hjelm (hjelm@cepheid.lanl.gov)
Date: Tue Nov 23 1999 - 09:31:34 MST


a simple script would just have to source the functions, then call
safe_mysqld

#!/bin/bash

. /etc/rc.d/init.d/functions

case "$1" in
  start)
    action "Starting mysqld: " /usr/local/bin/safe_mysqld
    ;;
  stop)
    killall -9 safe_mysqld
    ;;
esac
exit 0

Nathan Hjelm
MS B288 T-6: Theoretical Astrophysics
Blg: 123 Rm 183
Phone: 7-0452
Pager: 104-4958
On Tue, 23 Nov 1999, Patrick Larkin wrote:

> I'd like to start Apache (apachectl start) and mysqld (safe_mysqld) on
> startup. How would I go about this? I suppose I'd write a script in one
> of the rc.d directories but I can find a good reference on how to do it.
>
> Thanks...
>
> Patrick
>
>



This archive was generated by hypermail 2a24 : Fri Dec 03 1999 - 19:07:33 MST