nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-07-2006, 12:53 AM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
OS: Ubuntu
Posts: 79
Thanks: 23
Thanked 4 Times in 3 Posts
Rep Power: 6
chimu is on a distinguished road
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
  #2 (permalink)  
Old 06-10-2006, 01:17 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,706
Thanks: 11
Thanked 243 Times in 183 Posts
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 Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 09:45 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38