LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 08-31-2004, 04:50 AM   #1
echojihui
LQ Newbie
 
Registered: Mar 2004
Location: Beijing,CHINA
Distribution: RH 9 & slackware 10
Posts: 13

Rep: Reputation: 0
Unhappy How to restart a service in slackware?


Hi :
it's my first time trying on slackware ,I used RH before, when I want to restart a service in RH, I can do this waySMB e.g.)

#service smb restart

I wonder how to do this similar functions under slackware.

Any replies will be appeciated!
 
Old 08-31-2004, 04:54 AM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Take a look at /etc/rc.d/ most of the services run/stop/restart scripts are there.
And most of them are restarted by running those files with a restart argument, e.g.: /etc/rc.d/rc.samba restart
To start them do the same but with a start argument, same for stop but of course, with a stop argument
 
Old 08-31-2004, 05:01 AM   #3
echojihui
LQ Newbie
 
Registered: Mar 2004
Location: Beijing,CHINA
Distribution: RH 9 & slackware 10
Posts: 13

Original Poster
Rep: Reputation: 0
Wink thanks

thanks
I'll try it !
 
Old 08-31-2004, 09:46 AM   #4
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

Rep: Reputation: 30
There's also a way to start/stop services in pkgtool, but gbonvehi's suggestion is better. If for some reason you can't do it with a start command, open pkgtool as root and click on Setup.

Siri Amrit
 
Old 08-31-2004, 10:44 AM   #5
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
Is it a must to type in absolute path to start/stop/restart a service?

When I 'cd' to /etc/rc.d and type in "xxxx restart" something like that. it does not work.(command not found)
 
Old 08-31-2004, 10:47 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Try ./xxxx restart when you are in the same directory, if you are not there use a full path.
 
Old 08-31-2004, 07:24 PM   #7
echojihui
LQ Newbie
 
Registered: Mar 2004
Location: Beijing,CHINA
Distribution: RH 9 & slackware 10
Posts: 13

Original Poster
Rep: Reputation: 0
Smile

yes, when you cd in /etc/rc.d/ and run

#rc.httpd restart

it will inform you "Command not found",
you can try

#./rc.httpd restart

it works, and I found some of the scripts can not be executed, because they doesn't has "-x-" permission,you can try in this way:

#chmod a+x rc.httpd

and then rc.httpd can be executed under command line
 
Old 08-31-2004, 08:03 PM   #8
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Be carefull because chmoding +x them is the way they automatically run on startup. The startup scripts checks the files there and if they're executable they execute them, so if you don't want them to run on startup simply chmod -x them and run them by issuing: sh /etc/rc.d/xxxxxxx
 
  


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
Can't SSH until restart service Da Puff Mandriva 4 09-14-2005 08:51 PM
Automatically Restart Service tulip4heaven Linux - General 1 04-23-2005 02:11 AM
auto restart service st3reo Linux - Newbie 4 12-07-2004 12:46 PM
how squid service be start/restart in slackware LinuxLover Slackware 5 10-22-2004 07:16 AM
service network restart perry Linux - Networking 2 12-15-2003 07:00 AM


All times are GMT -5. The time now is 06:37 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration