[arch-general] Graceful shutdown Arch Linux
Dear Arch users, I am Ramkumar from India, i use Archlinux with i3 and no login manager. When i try to shutdown the machine, it throws lot of warnings about ethernet port and etc.. and when turning on the machine and open an application, say firefox, it shows like it has been crashed as if it was a forceful shutdown. But i checked it whether firefox is closed before shutting down and it was closed. I am worried whether i am doing some nasty things while shutting the machine down. Could you please help me with some graceful shutdown options for Arch linux? Thanks in advance -Ramkumar
On Thu, 7 May 2020 at 16:11, Ram Kumar via arch-general < arch-general@archlinux.org> wrote:
Could you please help me with some graceful shutdown options for Arch linux?
There's a differenc to a graceful shutdown for the OS level and for your desktop. As long as you do a shutdown via software (e.g. systemctl halt or systemctl poweroff or the same via your dm) then the system will shut down gracefully. What this means is that it will perform system-level shutdown of daemons and filesystems so that when the system is powered on again, it can mount the filesystems without any data loss or dammaged partitions. Any shutdown initated outside of your dekstop environment will forcefully shutdown the applications running in it without waiting for them to close, so although you have a graceful shutdown on a system-level, it can be quite abrupt on the desktop environment. The best way to avoid the latter is to either manually close all of your applications in your desktop environment prior to calling shutdown through software, or, find the correct option in your desktop environment to shut down the system. I've never used i3 but other DM I used all have options for powering down the system or at the least logging out.
On Thu May 7, 2020 at 4:26 PM, Andy Pieters wrote:
The best way to avoid the latter is to either manually close all of your applications in your desktop environment prior to calling shutdown through software, or, find the correct option in your desktop environment to shut down the system.
I've never used i3 but other DM I used all have options for powering down the system or at the least logging out.
Try `i3-msg exit` before you shutdown, you can setup a keybinding [1] for it in your i3 config. -- Spencer Muise [1] https://wiki.archlinux.org/index.php/i3#Shutdown.2C_reboot.2C_lock_screen
Not knowing the system in question a guess would be a .bash_logout file if bash is the shell being used is needed to have sysctl stop networkmanager.service in it, and may need more similar commands in it too. On Thu, 7 May 2020, Ram Kumar via arch-general wrote:
Date: Thu, 7 May 2020 11:10:32 From: Ram Kumar via arch-general <arch-general@archlinux.org> To: General Discussion about Arch Linux <arch-general@archlinux.org> Cc: Ram Kumar <ramkumar21194@gmail.com> Subject: [arch-general] Graceful shutdown Arch Linux
Dear Arch users, I am Ramkumar from India, i use Archlinux with i3 and no login manager. When i try to shutdown the machine, it throws lot of warnings about ethernet port and etc.. and when turning on the machine and open an application, say firefox, it shows like it has been crashed as if it was a forceful shutdown. But i checked it whether firefox is closed before shutting down and it was closed. I am worried whether i am doing some nasty things while shutting the machine down. Could you please help me with some graceful shutdown options for Arch linux?
Thanks in advance
-Ramkumar
--
participants (4)
-
Andy Pieters
-
Jude DaShiell
-
Ram Kumar
-
Spencer Muise