Skip to main content
Topic: Problem with reboot or poweroff (Read 360 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Problem with reboot or poweroff

This did happen before but always sporadic, in last month or two it happens every time (or in 95% of reboots):

I am using openrc, my initial installation year or so ago was with xfce4/openrc. I boot into console then 'startx' or start wayland by hand.

Lately every time when I 'sudo poweroff' or 'sudo reboot', shutdown stops at shutting down syslog-ng and stays there. In much smaller number of cases it can pass syslog-ng but stucks with dismounting external spinning hard drive used for backup. Even rarer, it manages to turn off or reboot.

Since this is getting painful, in great majority of cases I have to use hardware switch to poweroff, which leaves drives dirty, then new boot has to spend time to check them, so I am asking for help. Thanks.

Re: Problem with reboot or poweroff

Reply #1
This did happen before but always sporadic, in last month or two it happens every time (or in 95% of reboots):

I am using openrc, my initial installation year or so ago was with xfce4/openrc. I boot into console then 'startx' or start wayland by hand.

Lately every time when I 'sudo poweroff' or 'sudo reboot', shutdown stops at shutting down syslog-ng and stays there. In much smaller number of cases it can pass syslog-ng but stucks with dismounting external spinning hard drive used for backup. Even rarer, it manages to turn off or reboot.

Since this is getting painful, in great majority of cases I have to use hardware switch to poweroff, which leaves drives dirty, then new boot has to spend time to check them, so I am asking for help. Thanks.

Hi. As for syslog-ng, I also had a bad experience with it)) I recommend installing metalog https://packages.artixlinux.org/packages/world/any/metalog-openrc/

Next,

Code: [Select]
$ sudo rc-update add metalog default 

Code: [Select]
$ sudo rc-service metalog start 

Code: [Select]
$ ip -c a 
(for example, your interface IP is 192.168.1.1)

Make a change to the configuration file

Code: [Select]
$ sudo nano /etc/metalog.conf 

Find the line

Code: [Select]
# Configures a remote log server 
remote_host = 192.168.1.1 (specify your interface IP address here and uncomment)

reload

Code: [Select]
$ sudo rc-service metalog restart

Let's check .

Code: [Select]
$ sudo tail -f /var/log/everything/current 

Now open another terminal window and write

Code: [Select]
$ logger -t test  hello artix 

In the first window where the logs are, you should see this message ))




Re: Problem with reboot or poweroff

Reply #2
Thanks @tom-a , I did hear about metalog before didn't have time to examine how to replace syslog-ng. Your instructions are perfect and exactly what I needed.

Do I need to turn off and how to do that for syslog-ng? If it is simple service removal I can do that but asking just in case there is something more complicated.

 

Re: Problem with reboot or poweroff

Reply #3
Thanks @tom-a , I did hear about metalog before didn't have time to examine how to replace syslog-ng. Your instructions are perfect and exactly what I needed.

Do I need to turn off and how to do that for syslog-ng? If it is simple service removal I can do that but asking just in case there is something more complicated.
Hi. I made a mistake about the IP address, it is needed for a remote server.
I removed syslog-ng and installed metalog, if you need instructions for syslog-ng, here I found it https://jekhokie.github.io/syslog/syslog-ng/logging/linux/security/2016/12/21/syslog-ng-tutorial.html , maybe it will help
Metalog => https://wiki.gentoo.org/wiki/Metalog