I wonder what happened.
]]># Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none -/var/log/messages
We're at a point where I'm not much help. All I can do is offer very general advice.
Are your mirrors and files up-to-date?
Have you checked for any pacnew or pacsave files? Have you merged them?
For your logfile problems, reinstall syslog-ng, logrotate and whatever you are using for cron (cronie)?
Check the pacman log for what you might have updated around October 28th or 29th. Perhaps reinstall those programs?
I have removed syslog-ng and installed rsyslog as a replacement. Is it no set up to handle message from cron automatically?
]]>kill_all() {
stat_busy "Sending SIGTERM To Processes"
kill_all_wait 15 40
if (( $? == 0 )); then
stat_done
else
stat_fail
status "Sending SIGKILL To Processes" kill_all_wait 9 60
fi
}
"kill_all_wait 15 40" (kill_all_wait is defined in functions too) means send SIGTERM (15) to processes and do so 40 times, until none is running. If this fails, we send SIGKILL (which you should also see, does it fail too?). I wouldn't worry too much about it, but if you want to investigate, you could add "/bin/bash" after stat_fail to get a shell so you can browse /proc/ dir and see which processes are still running. After you're done just type exit and shutdown should continue. Alternatively, you could increase 40 to 80 or something, but this will increase shutdown time.
]]>Are your mirrors and files up-to-date?
Have you checked for any pacnew or pacsave files? Have you merged them?
For your logfile problems, reinstall syslog-ng, logrotate and whatever you are using for cron (cronie)?
Check the pacman log for what you might have updated around October 28th or 29th. Perhaps reinstall those programs?
Oct 28 01:40:18 localhost shutdown[906]: shutting down for system halt
Oct 28 01:40:19 localhost init: Switching to runlevel: 0
Oct 28 01:40:25 localhost acpid: exiting
Oct 28 02:17:20 localhost kernel: [ 0.000000] Initializing cgroup subsys cpuset
Oct 28 02:17:20 localhost kernel: [ 0.000000] Initializing cgroup subsys cpu
Oct 28 02:17:20 localhost kernel: [ 0.000000] Linux version 3.0-ARCH (tobias@T-POWA-LX) (gcc version 4.6.1 20110819 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Oct 19 10:27:51 CEST 2011
Oct 28 02:17:20 localhost kernel: [ 0.000000] Command line: root=/dev/sda7 ro
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-provided physical RAM map:
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009c400 (usable)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 000000000009c400 - 00000000000a0000 (reserved)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 0000000000100000 - 000000009727c000 (usable)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 000000009727c000 - 0000000097282000 (reserved)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 0000000097282000 - 00000000973d8000 (usable)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 00000000973d8000 - 000000009740f000 (reserved)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 000000009740f000 - 000000009745d000 (usable)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 000000009745d000 - 000000009745e000 (reserved)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 000000009745e000 - 00000000974df000 (ACPI NVS)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 00000000974df000 - 000000009770f000 (reserved)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 000000009770f000 - 0000000097717000 (usable)
Oct 28 02:17:20 localhost kernel: [ 0.000000] BIOS-e820: 0000000097717000 - 000000009771f000 (reserved)
Oct 28 02:20:26 localhost shutdown[1819]: shutting down for system reboot
Oct 28 02:20:29 localhost init: Switching to runlevel: 6
Oct 28 09:20:30 localhost rtkit-daemon[1235]: Demoting known real-time threads.
Oct 28 09:20:30 localhost rtkit-daemon[1235]: Successfully demoted thread 1248 of process 1233 (/usr/bin/pulseaudio).
Oct 28 09:20:30 localhost rtkit-daemon[1235]: Successfully demoted thread 1242 of process 1233 (/usr/bin/pulseaudio).
Oct 28 09:20:30 localhost rtkit-daemon[1235]: Successfully demoted thread 1233 of process 1233 (/usr/bin/pulseaudio).
Oct 28 09:20:30 localhost rtkit-daemon[1235]: Demoted 3 threads.
Oct 28 02:20:30 localhost acpid: exiting
Here is the output of the command for October 28
Oct 28 01:39:32 localhost shutdown[722]: shutting down for system reboot
Oct 28 01:39:32 localhost systemd-initctl[724]: Received environment initctl request. This is not implemented in systemd.
Oct 28 01:39:33 localhost acpid: exiting
Oct 28 01:39:33 localhost crond[727]: /etc/rc.d/functions: line 67: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
Oct 28 01:39:33 localhost crond[727]: /etc/rc.d/functions: line 67: warning: setlocale: LC_NUMERIC: cannot change locale (en_US.UTF-8): No such file or directory
Oct 28 01:39:33 localhost crond[727]: /etc/rc.d/functions: line 67: warning: setlocale: LC_TIME: cannot change locale (en_US.UTF-8): No such file or directory
Oct 28 01:39:33 localhost crond[727]: /etc/rc.d/functions: line 67: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory
Oct 28 01:39:33 localhost crond[727]: /etc/rc.d/functions: line 67: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory
Oct 28 01:39:33 localhost crond[727]: :: Stopping Cron Daemon [BUSY] [DONE]
Oct 28 01:40:00 localhost kernel: [ 0.000000] Initializing cgroup subsys cpuset
Oct 28 01:40:00 localhost kernel: [ 0.000000] Initializing cgroup subsys cpu
Oct 28 01:40:00 localhost kernel: [ 0.000000] Linux version 3.0-ARCH (tobias@T-POWA-LX) (gcc version 4.6.1 20110819 (prerelease) (GCC) ) #1 SMP PREEMPT Wed Oct 19 10:27:51 CEST 2011
Oct 28 01:40:00 localhost kernel: [ 0.000000] Command line: root=/dev/sda7 ro
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-provided physical RAM map:
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-e820: 0000000000000000 - 000000000009c400 (usable)
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-e820: 000000000009c400 - 00000000000a0000 (reserved)
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-e820: 0000000000100000 - 000000009727c000 (usable)
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-e820: 000000009727c000 - 0000000097282000 (reserved)
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-e820: 0000000097282000 - 00000000973d8000 (usable)
Oct 28 01:40:00 localhost kernel: [ 0.000000] BIOS-e820: 00000000973d8000 - 000000009740f000 (reserved)
There are usually only 10 to 20 lines in the messages.log from the previous shutdown. The lines are sorted by date and time.
Let's search for the shutdowns from yesterday.
# sudo egrep 'Nov\ +3' /var/log/messages.log | grep -A 20 shutdown
The first command, 'egrep', searches for all lines datestamped 'Nov 3'. The second command, 'grep', takes that output and searches for any lines with the word 'shutdown', and prints that line, with 'shutdown', and then the 20 following lines.
If you shutdown more than once on Nov 3, the code will be separated into blocks, using double hyphens, '--', as the separator between the blocks. The last block is enough to paste as code in a message on the forums, from the last double hyphens to your next command prompt.
]]>How can I upload file here?
]]>