Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I do adding a service

Status
Not open for further replies.

hsosa

Technical User
May 9, 2005
1
US
Hi
I installed the Apache Web Server from IBM Toolbox for Linux cd.
From the path /usr/local/bin , I can run the apachectl start, and works fine.
But, now the Customer wants that it run like a service
using...startsrc -s apache...and he can see the service and stopping whatever he are using stopsrc command.

How can I do this?
 
In order to do that you have to use the make subsystem command (mkssys). Do a 'man mkssys' to find the correct syntax. It does work because I have used it in the past.
 
Hi

It looks like this.
-s subsystemname
-p path to Daemon
-a "here are all Arguments of the Daemon, -D = Daemon Mode"
-u 0 = root
-S = SIGKILL = 15
-f = KILL = 9
-R = Restart if it goes down
-G = Subsystem Group

mkssys -s sshd -p "$sbindir/sshd" -a '-D' -u 0 -S -n 15 -f 9 -R -G ssh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top