Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 03-19-2008, 04:26 PM   #1
Registered: Apr 2006
Distribution: Fedora
Posts: 478

Rep: Reputation: 30
Turning Services On and Off


How do you accomplish this? I know that in some distributions (I think Fedora) and some environments (i.e. KDE) have nice dialog boxes and control centers to handle this. But, in Slackware with just the term window and whatever comes in a Slackware installation, how do I decide which services will be started at startup, etc. I remember there being a dialog when I installed Slackware, but I don't feel like reinstalling Slackware just to play around with turning services on or off.

Old 03-19-2008, 04:36 PM   #2
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Rep: Reputation: 31
sysv-rc-conf is the best command line tool . . . . imo. gives you everything you need.
Old 03-19-2008, 04:38 PM   #3
Senior Member
Registered: May 2004
Distribution: Slackware 14.2 64-bit with multilib
Posts: 2,435

Rep: Reputation: 646Reputation: 646Reputation: 646Reputation: 646Reputation: 646Reputation: 646
Under the rc.d directory there are listed services, ex: rc.inet1 and such. Usually when the system starts up is when these services are called upon. If you don't want them to be run when the system starts, simply use the chmod option. Example: If you want to stop rc.cups from starting, issue the command:

chmod -x /etc/rc.d/rc.cups
chmod +x /etc/rc.d/rc.cups
Makes the rc.cups executable again, and will be started at the next startup.

Also, issue the ls -l in /etc/rc.d to see the settings of each rc. file. If there is an x bit in the details, that means it is being executed at startup.

Also, remember you can stop or start a service by issuing a start or stop command without having to reboot, but this is only a temporary solution and the service in question will either start up or not start up depending on the chmod settings.

/etc/rc.d/rc.cups start
/etc/rc.d/rc.cups stop
Old 03-19-2008, 05:45 PM   #4
Slackware Contributor
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 229Reputation: 229Reputation: 229
In addition to what Jeebiz said...

If you run the `pkgtool` command you will see a "Setup" item. Choose that and you will get a list of scripts that can be run again.
Choose the "services" entry and you'll get a list of services that can be enabled/disabled.

This will not cover anything started from Inetd.

You will have to edit /etc/inetd.conf by hand (or you could try inetctl and then restart Inetd with something like

kill -HUP $(pidof inetd)
Old 03-19-2008, 05:53 PM   #5
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 66
Or, setup the xserver
and try your KDE apps there.
Old 03-19-2008, 06:03 PM   #6
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 166Reputation: 166
Originally Posted by sleekmason View Post
sysv-rc-conf is the best command line tool . . . . imo. gives you everything you need.
A stock Slackware install uses BSD style init scripts, not system V - so sysv-rc-conf is useful for people who have modified their system to use system V style scripts. Those scripts are started by /etc/rc.d/rc.sysvinit

Do I have it wrong - can it sysv-rc-conf be used for BSD style init scripts?
Old 03-20-2008, 04:20 PM   #7
Registered: Mar 2006
Location: Arkansas
Distribution: Sidux. Others on occasion.
Posts: 312

Rep: Reputation: 31
Good to know. guess I have to check out slack now to learn more. Thank you for the info.
Old 03-20-2008, 06:03 PM   #8
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 667

Rep: Reputation: 38
Quite handy (with GUI) is SlackIns.


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
Turning on and off services Thaidog Solaris / OpenSolaris 3 12-19-2005 02:06 PM
Getting an RPC errors after turning off services ceci2 Linux - Newbie 2 04-03-2005 02:28 PM
Turning Off Services Obie Linux - Security 2 05-30-2004 02:58 AM
turning off services a-money Linux - Distributions 1 08-05-2003 07:00 PM
Turning off services? ludwig W Linux - General 7 05-09-2003 04:02 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:17 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