Results 1 to 5 of 5
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 ...
- 10-05-2011 #1Just 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 youLast edited by said76; 10-05-2011 at 02:07 AM.
- 10-05-2011 #2
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.
- 10-05-2011 #3Just 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.
- 10-06-2011 #4Just Joined!
- Join Date
- Mar 2010
- Posts
- 9
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
- 10-06-2011 #5


1Likes
Reply With Quote
