Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the command to disable a service ?

shashi kanth
Super Advisor

What is the command to disable a service ?

With Tru64, what is the command to use to disable a service in particular/all run levels so that the service own't start automatically whenever i reboot the box ?

5 REPLIES
John Manger
Valued Contributor

Re: What is the command to disable a service ?

One method is to rename the startup script for your application or service inside the relevant run-level directory. That way it will not be started at a particular run-level.

For example, you might rename /sbin/rc3.d/S80myapplication to /sbin/rc3.d/s80myapplication. That would prevent the application starting at run-level 3.

All scripts whose name start with an upper-case S in a particular run-level directory are executed in ascending order when init transitions to that run-level; renaming a script to start with a lower-case s prevents it being executed.
Nobody can serve both God and Money
Venkatesh BL
Honored Contributor

Re: What is the command to disable a service ?

Yes, that is one way. You could also rename the actual file that would be present in /sbin/init.d directory.
shashi kanth
Super Advisor

Re: What is the command to disable a service ?


OK, I got the point, but i already know this information.

But i don't like the concept of manually renaming/moving rc*/init.d* files, since it some times leads to human mistakes.

I am looking for a command , something like "chkconfig" in Linux, which can do this task in Tru64.

Thanks.
Rob Leadbeater
Honored Contributor

Re: What is the command to disable a service ?

Hi,

As far as I'm aware there is no equivalent to the Linux chkconfig command on Tru64.

You have to manually rename or edit files...

Cheers,

Rob
Pieter 't Hart
Honored Contributor

Re: What is the command to disable a service ?

you can add a check in your script to test if a "semafore" file is present.
then you only need to "touch "
to disable startup?
and remove the file for normal operation.