Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-28-2011, 06:12 AM   #1
Registered: Aug 2010
Posts: 103

Rep: Reputation: 5
renaming a service name ?

Hello again. Have got few questions I need solution to. First, am trying to rename a service name. Cause my runlevel starts alphabetically, and I know all I have to do is to change the alphabet to a more early alphabet I tried using "rename" command, that didn't work. So I tried using vim to edit The service and was told modifiable is off. So how do I edit or change the name of a service, secondly, what is meant by the "modifiable" and how do I turn it on
Thanks as usual.

Last edited by Ribo01; 02-28-2011 at 06:15 AM.
Old 02-28-2011, 09:09 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

There are distinct differences between the various Linux distros so in order to be able to provide you a correct answer you'll need to tell us what distro and version you're using. If you just want to change the order in which a service start upon boot, like you indicate, depending on the run level, then you don't need to rename the service itself. If you look at rcX.d in /etc/ (Debian based) or /etc/rc.d/rcX.d (RHEL) you'll notice that the links there begin with K to stop and S to start in that runlevel (X = the runlevel number you want to change). Just recreate the links with the appropiate command (chkconfig, update-rc.d or whatever applies) and you're set. When you use a more recent distro (Debian Squeeze) changes are you're using dependency based boot sequence. Latest Ubuntus for as far as I know use Upstart.

So you see there are lots of possibilities. Depending on what you use the above apply or not. Let us know what you use as distro and version and we'll be able to help you more direct.

Kind regards,

Old 02-28-2011, 02:45 PM   #3
Registered: Aug 2010
Posts: 103

Original Poster
Rep: Reputation: 5
Hello y'all, and to ericTRA, was my bad forgot to include my distro after writing my post. Yeah, know bout the rcX.d but and use the chkconfig command but still can't seem the recreate the link as you said would like you to make it more simpler , and my distro is redhat Linux. Would be looking forward to hearing from you. Thanks.
Old 03-10-2011, 03:25 AM   #4
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Why do you insist on using Red Hat Linux instead of a newer (and supported) distribution?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] FC14 NetworkManager service: This service is dead ajhunter Linux - Networking 2 02-09-2011 04:19 AM
How to make TCP server a daemon / service much like a dhcpd service? rajat Linux - Networking 1 05-22-2007 02:29 AM
how to add service in service list akamol Linux - Software 2 07-20-2006 02:37 AM
Making a service as a system service Dakkar SUSE / openSUSE 2 07-13-2005 08:36 AM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 03:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration