Announcement

Collapse
No announcement yet.

Setting what to start up

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Setting what to start up

    Okay, so I want to disable mysql and apache autostart. I have go around internet and I got one of the solution which suggest to rename the symbolic link in /etc/rc2.d
    For example in my /etc/rc2.d there is a file name "S91apache2". I assume, it means I must rename "K91apache2", am I right?

    That's for apache2. But I am not sure about mysql. In the directory there are few files about mysql, such as:
    S17mysql-ndb-mgm
    S18mysql-ndb
    S19mysql
    Should I rename all of these three, or just "S19mysql"?

    I know there are another way to change autostart such as , change at System Setting->System Services
    But I insist to do this way, in order to learn more about terminal things, so I won't too depend on GUI.
    P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

    #2
    Re: Setting what to start up

    Hi......

    From what I've seen and experienced setting them off in system settings isn't a bad thing. if you look in etc/rcx.d (x being any number) there is a sym link in almost all of them pointing to the same file in /etc/init.d. You can probable do both and not hurt anything. As for the mysql, if your not using it turn them all off. If any of the apps require it they will let you know. :-)

    Comment


      #3
      Re: Setting what to start up

      Hm, if your mind is made up that that is the way you want to proceed then I would go down the following path:

      create a directory called /etc/rc2.d.off and move any services you don't want into it.
      Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

      Comment


        #4
        Re: Setting what to start up

        Well thanks for the suggestions. Actually I just want to learn new thing. If there is a simpler way to do it, of course I would do that way. I just wanna know more. That's all
        P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

        Comment


          #5
          Re: Setting what to start up

          Renaming/deleting/moving the rc.d links manually is 'hackish', and usually not the optimal solution (package updates/removals/installs deal with the links, which may lead to errors or re-creation of links).

          If you don't like the GUI service manager, there is a great CLI interface for services, sysv-rc-conf (you need to install the package for it). with it you can easily set services for all runlevels (and with the -p option you can reorder the services...don't do it if you don't know what you're doing ).

          There is also a 'simple' command to manipulate services for runlevels, update-rc.d (see 'man update-rc.d' for details)

          Comment


            #6
            Re: Setting what to start up

            I see.... thank's kubicle
            P4 3.06 HT,RAM 512 MB, 80GB HD, Geforce 6200 LE, Kubuntu 8.04

            Comment

            Working...
            X