Slackware :: Cant Shutdown Or Reboot / After Copied The Rc Script To Rc.d & Added Lines In Rc.local To Start The Script?
Oct 10, 2010
I just happen to have a glitch with my newly rebuild slackware server. This morning everything was working fine. Then having recently setup raid arrays, I decided to try MrGoblin's rc.mdadm script to monitor the raid arrays.
I copied the rc script to rc.d & added lines in rc.local to start the script, and a line in rc.6 to stop the script when shutdown or reboot.
Now, I cant reboot neither I can shutdown...
If I issue the command "shutdown -r now", Slack execute the normal shutdown or reboot steps, unmount the local FS, turn off swap, remount the rootdev as readonly, and then I see:
Code:
Mdadm monitor not running:INIT: no more processes left in this runlevel & it stalls at this point forever...
Before the machine would have rebooted after this line. What could explain this? Now I have to hard power down or reset the machine, and of course, upon rebooting I get a REISERFS warning of unclean shutdown...
Content of the rc.local:
Code:
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
code....
View 2 Replies
ADVERTISEMENT
Jun 13, 2011
I am using Deluge on my Debian server, for a simple auto start at boot I us the following lines in the /etc/rc.localsudo -u User delugedsudo -u User deluge-webDeluge is running after boot but i wane check if its running with User account and not as root.So I did a ps -aux | grep deluge and notice a line that root is trying to run the command sudo -U User deluge-web (i think its trying).
User 1735 1.5 1.0 187680 21604 ? Sl 16:30 0:04 /usr/bin/python /usr/bin/deluged
root 1736 0.0 0.0 20924 1168 ? S 16:30 0:00 sudo -u User deluge-web
User 1737 1.5 1.1 70400 24084 ? S 16:30 0:04 /usr/bin/python /usr/bin/deluge-web
The question is what does this mean? can i leave it running, is it better to kill it if so how to prevent that it happen on start-up.
View 6 Replies
View Related
Jun 11, 2011
I have done 3 clean installs for this problem and it remains, i don't want to do it from the terminal..(Buttons exists but they won't work...)
View 3 Replies
View Related
Mar 4, 2011
Before i wiped windows (and the dual-booted slackware on it to make a slackware only hdd) i (sort of) backed up my files. I put something into my /etc/fstab that wiped /tmp/ when i shutdown/rebooted.
View 4 Replies
View Related
Apr 24, 2010
I installed the slack 13 in an old Toshiba Qosmio F10, and everything was ok...but then,like 2 or 3 days after,I got a display problem at boot time: the screen is flashing, in vertical lines,so I read 2 letters,and then the next 2 are flashing. And it can't boot. 'Loading the kernel' is the last message.
I tried booting from the slack cd, the huge.s, but I got the same.
The strange is that if I use an old (very old) live cd, Kurumim 4.0, a dead Debian-based Brazilian live-cd, it boots. And then I have the vertical lines in graphic mode, but the notebook works.
I think that this is a hardware problem, but since it works with an old debian livecd,I suppose it should also be bootable with Slack.
EDITED: Ok,I tried Ubuntu and it couldn't boot,but eith the 'grapfical safe mode' it booted.
Since I can't believe that even Ubuntu would boot, but not the Slack, I tried
Quote:
# VESA frame buffer console @ 640x480x256
vga=769
and it is working...so the problem must be really hardware, the graphic card..Now I will try some others graphic definitions to see which one is the best
View 1 Replies
View Related
Mar 25, 2010
Further to this LQ thread which Tinkster solved by suggesting the last command (thanks Tinkster) I have been exploring last -x reboot and have found that the reported duration is incorrect for the last reboot and shutdown when a old wtmp file is used. Not having a record for the following shutdown, last assumes that the system has been up until the current time and similarly for the shutdown.
The output comes in time order, latest first, each line showing the time of the reboot and the uptime from then to shutdown. Using last -x reboot shutdown to show the shutdown time, here's an illustration
Code:
shutdown system down 2.6.29.6-smp Sun Mar 7 15:35 - 03:02 (11:27)
reboot system boot 2.6.29.6-smp Sun Mar 7 09:35 (05:59)
09:35 until 15:35 is 05:59.
When the uptime exceeds 24 hours it is shown as (<days>+<hours:minutes) like this
Code:
shutdown system down 2.6.29.6-smp Sun Feb 21 12:39 - 13:20 (00:40)
reboot system boot 2.6.29.6-smp Sat Feb 20 09:39 (1+02:59)
09:39 until 12:39 the next day is 1 day 02:59.
The time in parentheses at the end of the shutdown lines is normally the time until the next shutdown.
So far so good. The incorrect output is for the last reboot and shutdown of an old wtmp file. Here's the output of last /var/log/wtmp -x reboot shutdown; last -f /var/log/wtmp.1 -x reboot shutdown
Code:
[snip]
reboot system boot 2.6.29.6-smp Fri Mar 12 07:42 (01:54)
shutdown system down 2.6.29.6-smp Fri Mar 12 01:31 - 09:37 (08:05)
wtmp begins Thu Mar 11 08:25:26 2010
[snip]
reboot system boot 2.6.29.6-smp Wed Mar 10 14:12 (15+01:42)
shutdown system down 2.6.29.6-smp Wed Mar 10 12:41 - 15:54 (15+03:13)
[snip]
The boot started at "Wed Mar 10 14:12" which had an actual uptime of 1 day 11:20 is reported as 15 days 03:13 which is the time from then until the last -f /var/log/wtmp.1 -x reboot shutdown command was issued. The time from shutdown to shutdown is similarly affected.
View 1 Replies
View Related
Mar 7, 2011
I'm a little new to Slackware so maybe this isn't the right way to initiate vncserver on boot, but here's what I've got. The last two lines in my rc.local are:
/usr/bin/vncserver :1 &
mount.cifs //192.168.1.99/shared /mnt/shared -o username='uname',password='passwd'
the second line runs successfully on boot, but the first line doesn't. However, after I am logged on, I can execute /etc/rc.d/rc.local and both lines will run successfully. Does the system need to be fully logged on to start the vncserver, or should I start it elsewhere other than rc.local?
View 8 Replies
View Related
May 11, 2010
I recently formatted my HDD and installed Ubuntu Server 10.04 x64. This is actually the 4th install in the past week because I was testing some things. But I had this problem on at least the previous install which made me want to start fresh again. The problem I'm having is Ubuntu will not boot if I add any of my drives to fstab. If I leave it with the standard proc, /, and swap lines it works fine. As soon as I add a line for one of my RAID arrays or an NTFS formatted partition the system hangs on bootup. It doesn't matter if I have the extra drives operating or not.
The last thing I see before it hangs is:
Code:
/dev/sda1: clean, 69351/4358144 files, 583945/17401600 blocks
Here is what the fstab currently looks like:
Code:
proc /proc proc nodev,noexec,nosuid 0 0
UUID=c62ac627-46a6-4fd5-87e8-4ae0d9185d53 / ext4 errors=remount-ro 0 1
UUID=c1cee1e4-f8ac-4555-a88b-f237afdedd27 none swap sw 0 0
/dev/md0 /mnt/raid5 ext4 defaults 0 0
The other two lines which also made it hang included one which was almost exactly the same as the /dev/md0 line except it was md1 with a different mount point and another which used a UUID and was ntfs-3g. I know they work because all 3 of them were mounted by "mount -a" after putting them into fstab and they're pretty much the same as what I was using with 9.04 server.
View 3 Replies
View Related
Mar 10, 2011
I put my slackpkg on the Current mirror, to install all the new sofware, including the new kernel... Now I tried to reboot the system and verify the speed of the all new packages, but KDM don't start! When I call KDM, it shines a little, show the mouse pointer and backs to term. When I call the XDM its a little different, it let me put my user and password, but after back to term too...
View 10 Replies
View Related
Sep 17, 2010
I have installed vmlinuz and initrd.gz (squeeze) in /boot/newinstallation and added to Grub the lines:titleNova InstalaĆ§Ć£oroot(hd0,0)kernel/boot/newinstall/vmlinuzinitrd/newinstall/initrd.gzNevertheless, when I choose this option at the grub, it begins to start the kernel vmlinuz and thus restart the system. The installed Debian Lenny boots in a normal way.
View 10 Replies
View Related
Jan 24, 2010
I need to setup my ubuntu pc single nic card ip as 192.168.1.6 for internet and 10.172.170.95 and 135.10.86.100 for my lan and for another network through my 4port DSL modem.So i defined like this.Except addition of last two routes(10.0.0.0/8 & 200.200.176.0/24) everything worked as defined, what is the mistake i did?
In /etc/network/interfaces file
auto lo
iface lo inet loopback[code]............
View 1 Replies
View Related
Mar 30, 2010
I'm trying to reboot the server (shutdown -r now).But it seems like nothing happened.
When I try "shutdown -c", the system prompts "shutdown: cannot find pid of running shutdown."
View 5 Replies
View Related
Mar 1, 2010
if gccgo is going to be added to gcc for 13.1? I know it's a fairly new language.
View 1 Replies
View Related
Jun 12, 2011
So I just recently installed fresh 13.37 over my 13.1 install. Went multilib, and added myself to the usergroups I thought I might need. But truth is, I don't know what half of these are and I just picked the ones that sounded right. I'm the only user on this computer, although I might possibly maybe add another someone if I have to for some reason.
For my user account, I added myself to:
Code:
bin
disk
mem
kmem
wheel
floppy
mail
news
uucp
man
dialout
audio
video
cdrom
games
mysql
sshd
gdm
shadow
ftp
messagebus
haldaemon
plugdev
power
netdev
scanner
users
console
kismet
vboxusers
Basically, I want my own account to be able to do everything I normally do without too much restriction (use the disc drive, mount hard drives, browse the web, read/send email via Thunderbird, download stuff, etc), but leaving the important stuff to root so that if someone else happens to use the computer under my account, they can't do any damage. Did I select the right groups for this? Should I add or remove any? And what groups should a user have if I just want them able to browse the web, download files, use their /home, run non-root apps, and nothing else?
View 8 Replies
View Related
Sep 13, 2010
I'm curious as to why Xfce 4.6.2, has yet to be added to 'current'?
View 2 Replies
View Related
Jan 16, 2010
What things would you like to be added to the /extra directory?
I would add:
View 14 Replies
View Related
Mar 9, 2010
I have recently upgraded to the 10.04 Alpha and have been unable to reboot or shutdown. I know it's just an alpha and therefore problems are bound to exist, so I tried reinstalling from a live cd of Alpha 3. But I am still unable to reboot or shutdown.To clarify what happens, I click on shutdown or reboot, the pop-up appears, I click on the shutdown/reboot button and it seems to complete it. It says that processes have been killed and something has exited with 255. But my computer is still on. I am guessing that Ubuntu is shutting down, it's just not actually shutting my computer down or restarting it.
View 5 Replies
View Related
Jul 15, 2010
I have a remote server (Xubuntu 10.04) which suffered an electricity brownout yesterday. The server itself is backed with an ups, but it is connected to a external firewire disk, which is not, and this disk malfunctioned as a result of the brownout.
The problem: Now, any process trying to access the external disk freezes and ends up in eternal D state in the process list, including ls and umount. Even trying to ls a directory which contains a symbolic link to a file in that drive just causes ls to freeze. These processes cannot be killed even with SIGKILL, so I proceeded to reboot but...
None of the reboot commands work. Instead they just get added to the ever increasing list of D state processes. I tried (sudo) shutdown -r now, reboot -f now and finally plain shutdown -h now. Is there anything else to try other than ask somebody to actually go to the server and pull the plug (which is not at all trivial)? Some way to tell kernel not to worry about messing stuff up, and just reboot?
View 1 Replies
View Related
Nov 23, 2010
we've just bought 30 newest nettops ACER Aspire R3700 with ION 2. I've tried ubuntu, kubuntu, xubuntu. Everything works as expected, but... the first one freezes when trying to reboot, shutdown or enter sleep mode. Checked on several hardware units. The desktop just freezes and nothing happens (ubuntu 10.10, both x32 and amd64). Also no one installs the wi-fi drivers, only ethernet
View 4 Replies
View Related
May 4, 2011
Natty won't shutdown for me - the start up/shutting down graphic comes up and the 'light' go down from 5 to 3 then it just hangs there.
Is there a shutdown log? I've looked in /var/log/messages but there's nothing relevant there.
View 3 Replies
View Related
Jun 26, 2011
From a 11.04 Ubuntu, I installed the meta-package xfce4 (*). Now, in the xfce4 session, "suspend" and "logout" (from the xfce4-panel button) works, but "shutdowmn" and "reboot" not, they only lead to GDM. (the shutdowm option there works.)
I tried to solve that by installing the meta-package "xubuntu-desktop" (maybe there are some necessary settings included?), and in fact, the login-screen changed (it's still GDM, I suppose) and there is now a "xubuntu" session, but in that, the probem is just the same: shutdown only leads to the login screen.
In Gnome Classic or Unity, shutdowmn works as it shoulds, so it's not a general problem with my computer.
In Detail, in forst tried to install xfce4 with ubuntu-software-center, but although it seemed to succeed, there was no xfce session. In Synaptic, installing the xfce3 metapackage worked. In fact, software-center seemed to have overlooked some dependencies...
View 4 Replies
View Related
Aug 10, 2010
I am facing the issue that the PC not capable to shutdown or reboot; In order to debug that, htop tells me the running processes but all seems normal, I killed few but still cold reset is needed.There is certainly a problem somewhere. the best would be to know which process are weirdly hanging. It could make this testing debian bit better to know which package has these issues.
View 1 Replies
View Related
Nov 5, 2009
I've got an install of CentOS 5.3 in a VM which was installed without X or Gnome.I've added X (yum groupinstall 'X Window System') and Gnome (yum groupinstall 'GNOME Desktop Environment) and can now run startx no problem.However on boot I get a command line login rather than the graphical login screen one normally gets if Gnome is included at install time.What do I need to do to get the graphical login after boot?
View 3 Replies
View Related
Jan 4, 2010
Recently I installed Fedora 12 64bit in my HP Compaq 6720s. Among many other problems that I had and I solved with your help, I have the following problem:When I restart or shut-down Fedora 12 it crushes and hangs and only thing that I can do is to stop and restart my laptop by means of ON/OFF button.My question is:Is there any way to see this error (maybe some log file or something) so I can send this message or log file here in this forum and get some help?
View 1 Replies
View Related
May 30, 2010
I hoping someone can point me in a direction. I installed F13 KDE from the live cd and now when I Shutdown or Reboot, it takes 2 minutes and 8 seconds for the machine to power off. Yes, I timed it.Happens everytime like that. Even when booting from both "mainstream" live cd and the KDE spin live cd. When I hit the Shutdown or Reboot, it goes through the daemons/services shutdown the flashes up the Halting System or Please wait while the system reboots messages (respectivley), turns off the LCD and then just... sits with the power light on and hard drive activity light on. I should mention this is on a Toshiba Laptop about 2 years old now. Intel Chipsets. (Satellite Pro S300M-S2142 if anyone is really curious). The hard drive light stays on for about 1:03 minutes and then it turns off, at 2:08 minutes - the Power light finally turns off and the thing finally shuts down or reboots. If this sounds familiar, it's because it is and I've posted about it with F12 and it's still there with F13. Running kernel-2.6.33.3-85.fc13.x86_64
View 1 Replies
View Related
Feb 25, 2011
After a couple of days, some commands related to the disk (df) or files (ls) or killing process (kill -9) doesn't respond. Even I can't reboot or shutdown my server. After an hard reboot, some files are not here anymore or the log files are not filled anymore until I restart.My disk are behind the RAID controller i6 and are configure in RAID 1. The disks are two HP SCSI 72,8GB 10k RPM.Maybe I am totally wrong to check the disk access side, so I am open to other explanation.I can also add that my CPU is running under 1% et my RAM under 10%.
View 14 Replies
View Related
Jun 1, 2011
I don't follow why the Suspend option is there and the Reboot and Shutdown is not. Can anyone guide me to the code needed to add the selections. I know I can use a Terminal to shutdown or reboot but a simpler solution would be nice. I expect there are methods to fix most of what I don't like about Gnome 3 but I haven't found them yet. Is there a central place for the solutions needed to deminimalize Gnome 3? I really prefer one click control.
View 4 Replies
View Related
Jul 19, 2011
I want to change the reboot of ctrl+alt+del for shutdown, how i can do this in Fedora 15 ?
View 1 Replies
View Related
Feb 4, 2011
A couple of little niggles seen with KDE4.6. On 32bit install, (openSUSE11.3 was clean install)
-- reboot and shut down do nothing but hibernate and sleep are ok, can only powerdown with su privileges,
-- order of applications in plasma bar change after reboot.
On 64bit install, (openSUSE11.3 was update of openSUSE11.2)
-- slow poweroff overcome with new user profile, (no longer a problem with latest update)
-- inconsistent mouse curser theme, over desktop theme is Oxygen White, over application windows its DMZ
(resolved mouse cursor theme issue on 64bit install.
-- /etc/sysconfig, parameter X_MOUSE_CURSOR="DMZ"
-- and
-- /usr/share/icons/default was a link to DMZ
-- /usr/share/icons/default.kde4 was a link to oxygen
-- changed so that both were linked to DMZ
-- mouse cursor now consistent within windows and across desktop.
View 9 Replies
View Related
Apr 2, 2011
On one of my computers that I upgraded from 11.3 to 11.4 with a SSD HDD, it no longer umounts any disks on reboot or shutdown, there are no errors shown, it goes from sending TERM and KILL to rebooting.here is my fstab:
Code:
/dev/disk/by-id/ata-OCZ_SOLID_SSD_MK0109030A6100011-part1 /boot ext4 acl,user_xattr,noatime 1 2
[code]...
View 6 Replies
View Related