Automated Startup of Server (inittab?)

Automated Startup of Server (inittab?)

Post by Graham Ash » Fri, 12 Dec 1997 04:00:00



This may seem like a simple question, but what is the usual method for
automatic startup of a server, such as Apache?

We have been thinking about using inittab, since this allows for
restarting on failure.  Other choices would be /etc/rc* or something else.

It seems to me that this should be a Solved Problem, but I  have seen
no reference to it.

TIA

 
 
 

Automated Startup of Server (inittab?)

Post by Marc Slemk » Fri, 12 Dec 1997 04:00:00



Quote:>This may seem like a simple question, but what is the usual method for
>automatic startup of a server, such as Apache?
>We have been thinking about using inittab, since this allows for

No.  Apache is a daemon and will not work correctly when run in
such a manner.

Quote:>restarting on failure.  Other choices would be /etc/rc* or something else.
>It seems to me that this should be a Solved Problem, but I  have seen
>no reference to it.

This depends entirely on your OS and varies widely.  For example,
on FreeBSD you can use a file in /usr/local/etc/rc.d/ to specify
things to be started at boot.

 
 
 

Automated Startup of Server (inittab?)

Post by Kurt J. Lanz » Fri, 12 Dec 1997 04:00:00



> This may seem like a simple question, but what is the usual method for
> automatic startup of a server, such as Apache?

> We have been thinking about using inittab, since this allows for
> restarting on failure.  Other choices would be /etc/rc* or something else.

> It seems to me that this should be a Solved Problem, but I  have seen
> no reference to it.

I would start with "man boot" and peruse it and its "see also"
references. On most unices these days, startup/shtudown scripts are put
in /etc/init.d with links to them from /etc/rc?.d where ? is the run
state the system is going to (usually 2 or 3). Look at the scripts on
your system. Most can be called with either a "start" ro "stop"
argument. There are other details, but I have to leave soon.
--
Kurt J. Lanza

 
 
 

Automated Startup of Server (inittab?)

Post by anonymou » Fri, 12 Dec 1997 04:00:00




> > This may seem like a simple question, but what is the usual method for
> > automatic startup of a server, such as Apache?

> > We have been thinking about using inittab, since this allows for
> > restarting on failure.  Other choices would be /etc/rc* or something else.

> > It seems to me that this should be a Solved Problem, but I  have seen
> > no reference to it.

> I would start with "man boot" and peruse it and its "see also"
> references. On most unices these days, startup/shtudown scripts are put
> in /etc/init.d with links to them from /etc/rc?.d where ? is the run
> state the system is going to (usually 2 or 3). Look at the scripts on
> your system. Most can be called with either a "start" ro "stop"
> argument. There are other details, but I have to leave soon.

Of course if your server doesnt take much traffic you can always run it
out of inetd(inetd.conf actually or use some more configurable
super-daemon alternative such as xinetd).
 
 
 

Automated Startup of Server (inittab?)

Post by Doug Barne » Fri, 12 Dec 1997 04:00:00




> > This may seem like a simple question, but what is the usual method for
> > automatic startup of a server, such as Apache?

> > We have been thinking about using inittab, since this allows for
> > restarting on failure.  Other choices would be /etc/rc* or something else.

> > It seems to me that this should be a Solved Problem, but I  have seen
> > no reference to it.

> I would start with "man boot" and peruse it and its "see also"
> references. On most unices these days, startup/shtudown scripts are put
> in /etc/init.d with links to them from /etc/rc?.d where ? is the run
> state the system is going to (usually 2 or 3). Look at the scripts on
> your system. Most can be called with either a "start" ro "stop"
> argument. There are other details, but I have to leave soon.
> --
> Kurt J. Lanza


I start mine out of an rc script.  A simple 1 liner does it!!
--
Remove the NOSPAM to E-mail me.  Tired of the MLM schemes.
 
 
 

1. Log file for inittab at startup?

I have placed an entry into the inittab file to start the Tivoli ADSM
scheduler (like below):

adsm::once:/usr/bin/dsmc sched > /dev/null 2>&1   #TSM scheduler

After the machine boots the scheduler isn't running but I can start it
by issuing the /usr/bin/dsmc sched > /dev/null 2>&1 command from the
command line.  I'm wondering if there's a place to check and see why
init can't start this scheduler when I boot.  I have looked at
/var/adm/messages and there is no entry.  Anyone got any suggestions?
Thanks.

Sent via Deja.com
http://www.deja.com/

2. RPC.xxx failure

3. starting a program other than mingetty in inittab at startup?

4. NFS mounting, RPC: Authentication error, I/O error

5. modifyinig startup procedures - inittab

6. Senate Closes Accidental Anonymizer

7. XDM startup in inittab with HTTPD

8. LILO Problems

9. Is there a way to bypass inittab at startup?

10. SSL Apache Server startup requires password on startup

11. Automating services on startup?

12. how to automate connection at startup

13. Automating Apache startup with a dedicated dialup access line....?