Re: Making a script into a service



On Dec 4, 10:05 pm, Grant <g_r_a_n...@xxxxxxxxxxx> wrote:
On Tue, 4 Dec 2007 19:16:37 -0800 (PST), "Cke...@xxxxxxxxx" <Cke...@xxxxxxxxx> wrote:
I have several scripts that set to run when my unix server boots up
(in rc.local). These scripts kick off other programs that need to run
on the server.

Can anyone give me advice/guidance on how to take these scripts and
make them into one service that i can stop/start with one command such
as service stop example????

Sure, post one of the scripts...

Also see/search comp.unix.shell for this type of query.

Grant.


Yes. Here is three lines that I would want to put in the service. I
want to create it more for being able to kill all of the programs with
one command instead of pgrep the scripts and killing them manually.

This is a part of my rc.local file so that they start upon startup.

sudo -b /etc/adb5800/adbccaster5800 -c./adbccaster_5800.cfg

sudo -b /etc/adb3800/adbccaster3800 -c./adbccaster_3800.cfg

cd /opt/kreatel_win/
gij -jar /opt/kretel_win/InfocastServer.jar -v
.



Relevant Pages

  • Re: Making a script into a service
    ... These scripts kick off other programs that need to run ... one command instead of pgrep the scripts and killing them manually. ... Seems sudo -b detaches too much, ... Here I use this technique to detach a process and store its pid ...
    (comp.os.linux.misc)
  • Re: Making a script into a service
    ... These scripts kick off other programs that need to run ... on the server. ... make them into one service that i can stop/start with one command such ... Advice/guidance is much appreciated!! ...
    (comp.os.linux.misc)
  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... Can you do the following on uksccmads01 ... The problem may actually have nothing to do with the new server but the ... From a command prompt try and see if you get any additional info ... Skipping site UK-CCM, this site is outside the scope ...
    (microsoft.public.windows.server.active_directory)
  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... Can you do the following on uksccmads01 ... The problem may actually have nothing to do with the new server but the ... Active Directory Forest Replication GUIDs Found: ... From a command prompt try and see if you get any additional info ...
    (microsoft.public.windows.server.active_directory)
  • Re: dcdiag - advertising errors on newley promoted domain controller
    ... Default Server: uksccmads01.jw-uk.jameswalker.co.uk ... Output from dnslint on uksccmads01: No erros found, ... Active Directory Forest Replication GUIDs Found: ... From a command prompt try and see if you get any additional info ...
    (microsoft.public.windows.server.active_directory)