LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 06-07-2005, 07:59 PM   #1
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Rep: Reputation: 32
Slack problems 1)incomplete shutdown? 2)starting a service


Hi,

I recently installed Slackware 10.0

I am facing a few problems.

1) Whenever I give a command to shutdown the P.C. (init 0, poweroff, shutdown -h now)

Slack shuts down all processes and leaves me at a console saying "Power down" and the cursor blinking under it, but it does not switch off the P.C. and I have to do that manually.
How do I automate the process so that Slack completely shuts down the P.C. instead of me doing it manually all the time.

2) How do I start a service?
In particular what do I do if I want to start the sshd daemon. (I don't want it to be started at startup --for that I'll have to edit the rc.local file.-- I just want to start it when the P.C. is already booted up).

a slocate on sshd gives :
Code:
root@knapsacker:~# slocate sshd
/var/man/cat8/sshd.8.bz2
/etc/rc.d/rc.sshd
/etc/ssh/sshd_config
/usr/man/man5/sshd_config.5.gz
/usr/man/man8/sshd.8.gz
/usr/sbin/sshd
/usr/share/vim/vim63/syntax/sshdconfig.vim
root@knapsacker:~#

Thanks in anticipation.

Last edited by koodoo; 06-07-2005 at 08:07 PM.
 
Old 06-07-2005, 09:00 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
Starting the apm daemon should shut the PC off completly. There should be a line that is commented in the /etc/rc.d/rc.M file. Uncomment it to start the apm daemon at boot.

To start the ssh daemon.
/etc/rc.d/rc.sshd start

There are a few startup scripts in the /etc/rc.d directory.
 
Old 06-07-2005, 09:04 PM   #3
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
koodoo,
1) power off
Locate and edit the file /etc/rc.d/rc.modules

UNcomment the line: /sbin/modprobe apm

If your using the default 2.4.xx kernel that comes with Slack 10, I think this will do it
(after you reboot of course).

2) Starting services

The easiest way is to type: pkgtool
then -> setup -> services
(then it'll load on every boot)

I'm going off memory (my slack is not turned on right now). Check the processes you
want to load on startup.

good luck
-tw

Last edited by tw001_tw; 06-07-2005 at 09:08 PM.
 
Old 06-07-2005, 09:49 PM   #4
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Thumbs up

Thanx a lot for the help.


uncommenting /sbin/modeprobe apm
worked and now the P.C. shuts down completely

For starting the service :

I had tried /etc/rc.d/rc.sshd start before and got an error message and so I thought I was wrong somewhere :

Code:
root@knapsacker:~# /etc/rc.d/rc.sshd start
-bash: /etc/rc.d/rc.sshd: Permission denied
root@knapsacker:~#
But this time I figured it out. .Lucky me.

I was running this as root but still getting the permission denied error because the script was not executable. (wasn't it supposed to be in the first place ?)

So I did :
Code:
root@knapsacker:~# sh /etc/rc.d/rc.sshd start
root@knapsacker:~#
and it worked!!!!.

I could also have made it executable but I didn't want to change it in any respect.

Thanx again a great deal for your help
 
Old 06-08-2005, 09:32 AM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
If you do not set the service to run at boot when installing the OS. The permissions are not set to executable. Slackware does not start services unless they are neccessary. But to make it start at boot you can chmod 755 the file and it will start the next time you boot.

I hope you like Slack as much as I do.
 
Old 06-08-2005, 11:22 AM   #6
koodoo
Member
 
Registered: Aug 2004
Location: a small village faraway in the mountains
Distribution: Fedora Core 1, Slackware 10.0 | 2.4.26 | custom 2.6.14.2, Slackware 10.2 | 11.0, Slackware64-13
Posts: 345

Original Poster
Rep: Reputation: 32
Thanx for the help.

Slackware sure "rocks". It's made my P.C. work faster than it had ever been. I hope to enjoy it a great deal as I spend more time with it.

Thanks again.
 
  


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
Weird boot up and shutdown intermittent problems in Slack 10 Slovak Slackware 5 11-15-2004 08:52 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
Problems Starting PCMCIA Service nerdbebo Linux - Newbie 1 06-07-2004 03:03 AM
Service Shutdown and Init Setup g_goblin Solaris / OpenSolaris 1 10-29-2003 03:53 PM
How to stop a service from starting in slack benutne Linux - Newbie 4 02-25-2003 09:50 PM


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