LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

Rep: Reputation: 30
Turning Services On and Off


Hello,

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.


Advice?
 
Old 03-19-2008, 05:36 PM   #2
sleekmason
Member
 
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, 05:38 PM   #3
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware 14.2 64-bit with multilib
Posts: 2,416

Rep: Reputation: 639Reputation: 639Reputation: 639Reputation: 639Reputation: 639Reputation: 639
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:

Code:
chmod -x /etc/rc.d/rc.cups
Code:
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.

Code:
/etc/rc.d/rc.cups start
/etc/rc.d/rc.cups stop
 
Old 03-19-2008, 06:45 PM   #4
mRgOBLIN
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 http://www.userlocal.com/mrgoblin/inetctl/) and then restart Inetd with something like

Code:
kill -HUP $(pidof inetd)
 
Old 03-19-2008, 06:53 PM   #5
cwwilson721
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
Code:
xorgsetup
and try your KDE apps there.
 
Old 03-19-2008, 07:03 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
Quote:
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, 05:20 PM   #7
sleekmason
Member
 
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, 07:03 PM   #8
adriv
Member
 
Registered: Nov 2005
Location: Diessen, The Netherlands
Distribution: Slackware 14.2
Posts: 667

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:18 AM.

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