Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-12-2012, 05:31 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 13
Rep: 
|
Slackware-current need a double reboot command to really reboot the system
Hello,
If I run reboot ou halt command on the system, it's only terminate some processes and doesn't finish the reboot.
Output from messages log:
Quote:
shutdown[1872]: shutting down for system reboot
init: Switching to runlevel: 6
init: no more processes left in this runlevel
|
Then after ran again reboot command the system finishing the reboot.
To really reboot I'm using a double command:
Anyone with the same problem with current version (64-bits)?
Thank you.
Pedro Correia Sardinha
|
|
|
|
09-12-2012, 05:39 AM
|
#2
|
|
Member
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 282
Rep:
|
I'm not going to say that has not to be used but it's safer (and well, it works).
The behavior of changes if you are on a specific runlevel I find shutdown to be more consistent.
BTW: what you are doing with it's evil, read the reboot manual for clarification.
I have slackware-current and reboot it's working as expected, Maybe you messed up with rc scripts ?
Last edited by Celyr; 09-12-2012 at 05:42 AM.
|
|
|
|
09-12-2012, 05:47 AM
|
#3
|
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,509
|
...and if you really want to do it quick and clean (as root, su -, sudo):
Or, take it to single-user mode
do some stuff (like updates) then
And life is good.
Oops, forgot shut it off:
Hope this helps some.
Last edited by tronayne; 09-12-2012 at 05:50 AM.
|
|
|
|
09-12-2012, 05:51 AM
|
#4
|
|
Member
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 282
Rep:
|
His rc.6 is "damaged" I think, what's the output of
Code:
# ls -lash /etc/rc.d/rc.6
|
|
|
|
09-12-2012, 06:00 AM
|
#5
|
|
LQ Newbie
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 13
Original Poster
Rep: 
|
Thank you Celery and tronayne for your replies.
Resulting no difference by running:
Code:
# ls -lash /etc/rc.d/rc.6
Give this output:
8.0K -rwxr-xr-x 1 root root 7.6K Aug 15 00:03 /etc/rc.d/rc.6
Thank you.
|
|
|
|
09-12-2012, 06:01 AM
|
#6
|
|
Member
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 282
Rep:
|
then it's your inittab, please attach the result of
|
|
|
|
09-12-2012, 06:11 AM
|
#7
|
|
LQ Newbie
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 13
Original Poster
Rep: 
|
Celyr,
Attached inittab!
Thank you.
|
|
|
|
09-12-2012, 06:33 AM
|
#8
|
|
Member
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 282
Rep:
|
It looks ok.
try
Code:
$ md5sum /etc/rc.d/rc.6
d3b597a1a0c0b1891dc613da9cdb20d3 /etc/rc.d/rc.6
my is vanilla, if your it's not same as mine you may want to get it back with
Code:
# slackpkg reinstall sysvinit-scripts
your inittab has CRLF newline
Code:
# Runlevel 6 reboots the system.^M$
l6:6:wait:/etc/rc.d/rc.6^M$
^M$
do a
Code:
cat -A /etc/inittab
to make sure it's a copy paste issue  you should not see any ^M
Last edited by Celyr; 09-12-2012 at 06:36 AM.
|
|
|
|
09-12-2012, 07:21 AM
|
#9
|
|
LQ Newbie
Registered: Aug 2012
Location: Portugal
Distribution: Slackware, Salix OS
Posts: 13
Original Poster
Rep: 
|
Thank you for all suggestions, but It was my mistake with default system rc scripts. Sorry! In this case I modified rc.samba, a month ago, changing rc.samba script to run samba4 AD. I don't searched what the default system is doing in reboot process to start and stop samba3, I just believed that using samba4 rc script as rc.samba could simplify, wrong! Because I'm using samba4 for serving an Active Directory, I had to do it in other way. The resolution was revert the samba4 rc script to rc.samba4, then starting rc.samba4 at boot in rc.local, and stop in rc.local_shutdown.
Thank you.
|
|
|
|
09-12-2012, 09:43 AM
|
#10
|
|
Member
Registered: Dec 2008
Posts: 757
Rep: 
|
Since long ago there were discussions why children rc's should be called
1) with the "sh" prefix such as "sh /etc/rc.d/rc.wicd start"
2) with a "." prefix
Has there been any conlusions apart from the negligible performance gain by 2)?
I believe 2) easily messes things up, while 1) just stores one piece of information twice in two places (the command line in the caller and the shebang of the callee).
|
|
|
|
09-12-2012, 12:36 PM
|
#11
|
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,509
|
You only need to do the sh shell_prog_name if shell_prog_name is not executable; if it is, just type the name and optional argument. You (c|w)ould
Code:
chmod 755 /etc/rc.d/rc.wicd
and problem solved.
What the dot-space prefix does is to execute a shell program in the current environment; the shell does not execute the program in a new PID, it executes in the current PID. What that does is allow you to modify your current environment if desired -- any environment variables set in a dot-space execution will remain set in the current environment.
Just for grins, the "rc" comes from DEC days (like the PDP line), means "run command." The boyos at Bell Labs built Unix on DEC PDP's and, gee, wonder why the used rc, eh?
Hope this helps some.
|
|
|
|
09-12-2012, 03:19 PM
|
#12
|
|
Member
Registered: Dec 2008
Posts: 757
Rep: 
|
Quote:
Originally Posted by tronayne
...
Hope this helps some.
|
Sorry I meant to ask why they are there and not what they are.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:46 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|