Find the answer to your Linux question:
Results 1 to 5 of 5
Like Tree1Likes
  • 1 Post By rohit87
Hi, Just wondering how to start up an application in Ubuntu Server 10.04. I read somewhere that I need a script made up, put the script in /etc/init.d/ and then ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9

    startup application during boot-time

    Hi,

    Just wondering how to start up an application in Ubuntu Server 10.04.

    I read somewhere that I need a script made up, put the script in /etc/init.d/ and then run the following command in terminal

    sudo update-rc.d script defaults

    This is what I did but for some reason, it did not work.

    What I'd like to do is to start up the following application during the boot-time

    1. Apache2
    2. Postfix
    3. Dovecot

    All of the above applications, by installation, have got script made up already and they reside in /etc/init.d/

    So when typing in $sudo update-rc.d apache2 defaults, I got a message saying "System start/stop links for /etc/init.d/apache2 already exist"

    The same thing goes for postfix and dovecot. I even tried to do it via System->Preferences->Startup Applications, and add /etc/init.d/apache2. This did not work either because when I checked for its processes by using "ps -A | grep apache2", I did not see any of its processes.

    I run out of ideas. Any help would be greatly appreciated.

    Thank you
    Last edited by said76; 10-05-2011 at 02:07 AM.

  2. #2
    Just Joined! rohit87's Avatar
    Join Date
    Jun 2011
    Location
    Kochi, Kerala, India
    Posts
    10
    Hello friend, I use a good tool in Ubuntu for turning on services from boot up, stopping it, etc.

    For installing it: sudo apt-get install sysv-rc-conf
    After installing run the command 'sudo sysv-rc-conf'. Then you can see the list of services. Switch on your services and also select the run levels in which you would like them to start on boot up.
    rajatmendus likes this.

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Location
    India
    Posts
    14
    You can even try using the chkconfig tool(I'm a redhat user so its very familiar to me). Its available in the software center or type sudo apt-get install chkconfig.

  4. #4
    Just Joined!
    Join Date
    Mar 2010
    Posts
    9
    Quote Originally Posted by rohit87 View Post
    Hello friend, I use a good tool in Ubuntu for turning on services from boot up, stopping it, etc.

    For installing it: sudo apt-get install sysv-rc-conf
    After installing run the command 'sudo sysv-rc-conf'. Then you can see the list of services. Switch on your services and also select the run levels in which you would like them to start on boot up.
    Thank you for your reply.

    I still can not get it to run automatically at boot time after running sysv-rc-conf.

    In sysv-rc-conf, I have

    apache2: X (at runlevel 2), X (at runlevel 3), X (at runleverl 4), X (at runlevel 5)

    That was before. Then, I changed it by putting a X sign to runlevel 6. But the result was it did not start the apache2 after rebooting my machine.

    what possibly could go wrong here? I do not know whether or not it's to do with the apache2 script because I have not changed anything to it. It's still the same as default (i.e. just like what I installed it in the first place).

    Thank you

  5. #5
    Just Joined! rohit87's Avatar
    Join Date
    Jun 2011
    Location
    Kochi, Kerala, India
    Posts
    10
    Quote Originally Posted by rajatmendus View Post
    You can even try using the chkconfig tool(I'm a redhat user so its very familiar to me). Its available in the software center or type sudo apt-get install chkconfig.
    Hey said76, try chkconfig then. I have used it. It works for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...