What is the '/var/run/$NAME.pid' referred to in this skeleton script? And how do I establish this? (I compiled Mysql and Apache)
Also, I start Apache by issuing the command "apachectl start" and stop it by issuing "apachectl stop." It is in /usr/local/apache/bin/. Is "/usr/local/apache/bin/apachectl" the "DAEMON" referred to in this script? I take it that "apache" would be the "NAME," Correct? > On Tue, Aug 08, 2000 at 11:23:49PM -0700, [EMAIL PROTECTED] wrote: > > I am trying to get Debian automatically to start, 1) MySQL and 2) > > Apache > > According to the FAQs, rc.local does not work and I am > supposed to > develop some scripts in /etc/init.d which take the > arguments start', > `stop', `reload', `restart' or `force-reload' > > > First of all, all I want to do is to start these automatically upon > > boot up. I do not care about the stop, reload, restart, or > > force-reload and would prefer not to deal with them unless Debian > > insists. > > > Secondly, precisely what language do I use. Eg: will the > > following, for Apache work: > > > <script> > > #!/bin/bash > > /usr/local/apache/bin/apachectl start > > </script> > > > If this language will not work, what will? And can I omit this > > reload and other items about which I do not care. Also, of course, > > precisely what language do I need for MySQL? I understand that > > Debian automatically begins on run level 2. Do I need to worry > > about other runlevels? > > Duncan: > > If you install both these programs from Debian packages, the rc*.d > init scripts will be configured for you automatically, and the > services will start up on boot. You'll also be able to start, stop, > reload, or restart them with: > > # /etc/init.d/myservice start|stop|reload|restart > > ...syntax. > > If this doesn't suit your fancy, take a look at /etc/init.d/skeleton > and modify it to suit your needs (copy it, *then* modify it). > > -- > Karsten M. Self <kmself@ix.netcom.com> > http://www.netcom.com/~kmself > Evangelist, Opensales, Inc. > http://www.opensales.org > What part of "Gestalt" don't you understand? Debian GNU/Linux > rocks! > http://gestalt-system.sourceforge.net/ K5: > http://www.kuro5hin.org > GPG fingerprint: F932 8B25 5FDD 2528 D595 DC61 3847 889F 55F2 B9B0 > Regards, Duncan C. Kinder [EMAIL PROTECTED]