preventing service from auto-start...

Posted on 2001-07-14
Last Modified: 2011-10-03

I've installed a product which, after configuration, sets autostart for it's main service. So everytime I reboot my Unix box, the service starts up automatically and starts all the processes which run the product. I would like to know a method with which I could suppress this autostart functionality so that the service could only be started in a manual way. Can any one please tell me how this could be done on Unix? I am using Compaq Tru64 UNIX v5.1.

Thanks in advance.
Question by:baigmz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Author Comment

ID: 6282481
Oh btw, the product doesn't provide a feature which could be used to enable/disable autostart. I would like to use a standard Unix method to change the startup flag.

Expert Comment

ID: 6282931

You might wanna check the path /etc/rc.d/init.d if your service batch file is there.  If it is there you will need to move it away from that directory since that were all services auto-start on booting.

I'm not sure regarding Tru64 Unix but it may be the same above mentioned path or something close to it.

Good Luck


Author Comment

ID: 6282982
Thanks, but I couldn't find that file on Tru64 UNIX.
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

LVL 38

Expert Comment

ID: 6284412
Hi baigmz ,

    You might end up have to write your own start up script for this. and
put it in /etc/rc2.d or /etc/rc3.d and give it a name like S99mgstartup
    Here's a example startup-stop script:
  # Generic script used to start and stop a service

      case "$1" in

                        # Start the sshd server
                        if [ -f /usr/local/sbin/sshd ]; then
                               /usr/local/sbin/sshd &
                    pid=`ps -ef | grep sshd | grep -v grep | awk '{print $2} ' `        
                    if test "$pid" ;  then
                        /usr/bin/kill $pid
                        echo "No PID file. Process may not be running"
                      echo "Usage: /etc/init.d/sshd { start | stop }"
              exit 0

      I hope this infor can help. for soem of the software, you have to write
your own startup script.



Accepted Solution

PaulSmirnoff earned 60 total points
ID: 6285994
Depending on what runlevel you r using it will be probably:

1) some script in   /etc/rc{RUNLEVEL}.d   ...

2) some entry in /dev/inittab

3) /dev/rc.local

Check it out

Expert Comment

ID: 6286028
OOps, sorry..



Author Comment

ID: 6286086
Thanks for your suggestions...I'll give them a try and let you know soon.

Expert Comment

ID: 6288780
on Tru64 they stick all the start-up stuff in /sbin, so checkout


more than likely your looking for something like


Regards Mike

Expert Comment

ID: 6292095
When you've found the entry in rc3.d (for example) and have commented it out (DON'T REMOVE IT ENTIRELY!), then you can copy the entry and change the init level to a, b, etc.  The letter init levels are intended for exactly the purpose you intend.

Do not accept this comment as the answer.  Other people have contributed more.

Author Comment

ID: 6342893
Thanks, script worked.

Expert Comment

ID: 6904939
ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101 or Netminder will return to finalize these if still open in seven days.  Please post closing recommendations before that time.

Question(s) below appears to have been abandoned. Your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> You cannot delete a question with comments, special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process for further information, if needed.

Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, to track all your open and locked questions at this site.  If you are an EE Pro user, use the Power Search option to find them.  Anytime you have questions which are LOCKED with a Proposed Answer but does not serve your needs, please reject it and add comments as to why.  In addition, when you do grade the question, if the grade is less than an A, please add a comment as to why.  This helps all involved, as well as future persons who may access this item in the future to seek help.

To view your open questions, please click the following link(s) and keep them all current with updates.

To view your locked questions, please click the following link(s) and evaluate the proposed answer.

------------>  EXPERTS:  Please leave any comments regarding your closing recommendations if this item remains inactive another seven (7) days.  Also, if you are interested in the cleanup effort, please click this link

Moderators will finalize this question if still open in 7 days, by either moving this to the PAQ (Previously Asked Questions) at zero points, deleting it or awarding expert(s) when recommendations are made, or an independent determination can be made.  Expert input is always appreciated to determine the fair outcome.
Thank you everyone.
Moderator @ Experts Exchange

P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question