Michel Donais wrote:
> 
> In RedHat 7.2  in the panel there is a service configuration;
> how can I add a software to that list something like "dhcpd"
> for an example.
> 
> Michel
> In RedHat 7.2  in the panel there is a service configuration;
> how can I add a software to that list something like "dhcpd"
> for an example.
> 
> Michel

This may contain more information than you need, but should explain not
only how to do it, but why it works.

-David


###########################
A quick recipe
###########################
Copy the shortest file in /etc/init.d/ to /etc/init.d/MyNewService. 
Edit MyNewService so that the comments reflect what you want for your
service, and edit the body of the script so that it correctly starts and
stops your service.  See the notes on the "# chkconfig: " comment,
below; this is important.

###########################
More details
###########################
If you look in /etc/init.d/, you will see a file for each service. 
These files must have two specific comments in them.  The mandatory
comments are:

# chkconfig: 245 65 35
# description:  provides myservice; the comment must be on one line.

The first comment must start with "# chkconfig: ".  It lists runlevels,
startpoint, and stoppoint.  This is explained below.

The second comment must start with "# description: ", followed by a
one-line description of the service.

If you leave either comment out, it won't work.


Here's the format of the first comment:
# chkconfig: abc Sn Kn
where
 a, b, c are runlevels in which the service should be started.
 Sn is the point during startup that the service should be started.
 Kn is the point during startup that the service should be stopped.

Take the example given above, "# chkconfig: 245 65 35".  This will
create six links to /etc/init.d/myservice:

/etc/rc1.d/K35myservice  # Stop it with the thirty-fives in runlevel 1
/etc/rc2.d/S65myservice  # Start it with the sixty-fives in runlevel 2
/etc/rc3.d/K35myservice  # Stop it with the thirty-fives in runlevel 3
/etc/rc4.d/S65myservice  # Start it with the sixty-fives in runlevel 4
/etc/rc5.d/S65myservice  # Stop it with the thirty-fives in runlevel 5
/etc/rc6.d/K35myservice  # Stop it with the thirty-fives in runlevel 6

When entering a runlevel, Red Hat steps through all of the K* files in
numeric order.  They are called with a parameter, the string "stop". 
Your script (in /etc/init.d) should stop your service when called with
this parameter.

After it's run all of the K files, it runs all of the S* files, again in
numeric order, this time with "start" as the parameter.  Your script (in
/etc/init.d) should start your service when called with this parameter.

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_____________________________________________________________________
Ltsp-discuss mailing list.   To un-subscribe, or change prefs, goto:
      https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help,   try #ltsp channel on irc.openprojects.net

Reply via email to