LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How we can turn off/on services in Slackware? (https://www.linuxquestions.org/questions/slackware-14/how-we-can-turn-off-on-services-in-slackware-777436/)

Danzille 12-22-2009 07:13 AM

How we can turn off/on services in Slackware?
 
Recently I've migrate from Mandrake-like distro to Slackware12. In systemV distroes it`s very easy to control startup services. Who can tell more easy way to manage services in "ntsysv style", without editing script in rc.d ?

cola 12-22-2009 07:17 AM

Quote:

Originally Posted by Danzille (Post 3801127)
Recently I've migrate from Mandrake-like distro to Slackware12. In systemV distroes it`s very easy to control startup services. Who can tell more easy way to manage services in "ntsysv style", without editing script in rc.d ?

http://www.linuxquestions.org/questi...ervices-30203/

mRgOBLIN 12-22-2009 07:21 AM

Run pkgtool then choose "Setup" then "Services"

Or you can just manually chmod + or - the various /etc/rc.d/rc.* scripts.

e.g
Code:

chmod +x /etc/rc.d/rc.httpd
will set the httpd server to start at boot time.
Code:

chmod -x /etc/rc.d/rc.httpd
will stop the httpd server from starting at boot time.

~sHyLoCk~ 12-22-2009 07:22 AM

List services:

Code:

ls /etc/rc.d/
Off:

Code:

chmod -x /etc/rc.d/rc.servicename
On:

Code:

chmod +x /etc/rc.d/rc.servicename
EDIT: Damn, too late :p

Woodsman 12-22-2009 12:53 PM

Quote:

Recently I've migrate from Mandrake-like distro to Slackware12. In systemV distroes it`s very easy to control startup services. Who can tell more easy way to manage services in "ntsysv style", without editing script in rc.d ?
Coming from a Mandrake-like environment, you probably are looking for a graphical point-and-click interface to control services. With the stock Slackware there is no such graphical interface for controlling services. :(

As mentioned by mRgOBLIN, there is the pkgtool/setup/services option. That option requires a console or terminal. The pkgtool utility is ncurses, not exactly a graphical interface as many people use the phrase.

The normal option used by most Slackers is the command line and the chmod command. Not glamorous but effective. :)

dive 12-22-2009 03:48 PM

If you ever chkconfig in Redhat well I made a curses script that is similar. It could still do with a lot of refining but have a look and see what you think:

http://www.unrealize.co.uk/scripts/bash/chkservice

hitest 12-22-2009 05:47 PM

Quote:

Originally Posted by Woodsman (Post 3801469)
The normal option used by most Slackers is the command line and the chmod command. Not glamorous but effective. :)

I wouldn't have it any other way!
I appreciate the fact that all system commands in Slackware can be configured via a shell prompt and/or a text editor.
I think it will be the sign of an impending apocalypse if Slackware ships with GUIs.

Woodsman 12-22-2009 10:46 PM

To Danzille:

If you want a graphical tool for controlling rc.d startup scripts, you can use the Salix tools package, which is backwards compatible with Slackware 13.

I just installed Salix to a virtual machine and took a quick look at the tools. I think this is what you are looking for. :)

Danzille 12-23-2009 03:36 AM

Thanks a lot!
1st of all I'll try Salix tools. I don't use GUI configuration tools - in Mandrake-like distroes there was ntsysv utility. Working fine at console. So, smth written with ncurses will fit. I am afraid to corrupt rc.d scripts while editing them manually.
Also, what kind of automounter and modules managing tool works good with Slackware?
After kernel compilation I have light kernel (1.4Mb against 4+ Mb standart one) but have to compile some components as modules. Ex. iso9660 and udf. So, before mounting cdrom/dvd as a user, I have to "modprobe iso9660" at root console.

gapan 12-23-2009 04:17 AM

The salixtools work with Xdialog or dialog. So if you don't have Xdialog installed, you won't get a GUI, but an ncurses-like interface with exactly the same options.


All times are GMT -5. The time now is 04:05 PM.