nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Ubuntu Linux control startup services or scripts

This is a discussion on Ubuntu Linux control startup services or scripts within the Shell scripting forums, part of the Development/Scripting category; Hi! I just want to know how do I control startup services or scripts under Ubuntu Linux? Fedora core has ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-26-2006, 01:53 AM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
My distro: Ubuntu
Posts: 33
Rep Power: 0
chimu is an unknown quantity at this point
Default Ubuntu Linux control startup services or scripts

Hi!

I just want to know how do I control startup services or scripts under Ubuntu Linux? Fedora core has chkconfig command

chkconfing service on

But above command is not working under Ubuntu Linux. I also tried ntsysv but no luck so far.

TIA
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-06-2006, 02:17 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

chkconfig is fedora or Red hat linux only command. It will not work under Ubuntu Linux.

Under debian and Ubuntu Linux use update-rc.d command to install and remove System-V style init script links.

Turn on or start service called mysql on boot
Code:
sudo update-rc.d mysql defaults
Remove service called mysql on boot:
Code:
sudo update-rc.d mysql remove
OR
Code:
sudo update-rc.d -f mysql remove
Replace mysql name with actual service name. You can also use GUI tool called rcconf or sysv-rc-conf.
Code:
sysv-rc-conf
rcconf
See following url for more info about these two commands.
http://blogs.cyberciti.biz/hm/index....s-or-services/
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
List Services Linux Running raj Getting started tutorials 4 03-28-2008 04:55 PM
Interacting with a Linux Process through Scripts manikandakumar Shell scripting 1 08-17-2007 07:49 PM
Enable or disable services in Debian Linux raj Linux software 1 01-25-2007 04:00 AM
Which Linux network services pose a security threat? chimu Linux software 2 07-20-2006 07:59 PM
Control Panel In Linux vin6384 Linux software 2 02-10-2006 04:22 AM


All times are GMT +5.5. The time now is 07:27 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36