Changes

From SME Server
Jump to navigationJump to search
Line 2: Line 2:     
If you want to start a custom service on the SME Server, you will have to follow some steps.
 
If you want to start a custom service on the SME Server, you will have to follow some steps.
 
+
The init script below is just a wrapper, a launcher that will start the real script which will do the job for you (see SCRIPT=<COMMAND>). Of course the init script is here only if you want add a service by hand not installed by a rpm.
 +
In that case of you have installed a service which comes from a rpm but without init script in the runlevel 7 you have to follow from the chapter
 
add a script to /etc/rc.d/init.d like the script below
 
add a script to /etc/rc.d/init.d like the script below
   Line 84: Line 85:  
  <nowiki># Description: <DESCRIPTION></nowiki>
 
  <nowiki># Description: <DESCRIPTION></nowiki>
 
  ..
 
  ..
  SCRIPT=<COMMAND> #path to the script you want to start automatically
+
  SCRIPT=<COMMAND> #path to the script you want to start automatically at boot
 
  RUNAS=<USERNAME> #user who run the script (can be root or other choice)
 
  RUNAS=<USERNAME> #user who run the script (can be root or other choice)
 
  NAME=<YOUR_SERVICE_NAME> #name of the service.
 
  NAME=<YOUR_SERVICE_NAME> #name of the service.

Navigation menu