Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

reboot

crontab’s @reboot only works for root?

August 11, 2022 by Magenaut

man 5 crontab is pretty clear on how to use crontab to run a script on boot:

Categories Q&A, Unix & Linux Tags cron, reboot Leave a comment

Save entire process for continuation after reboot

August 11, 2022 by Magenaut

I developed an algorithm for a fairly hard problem in mathematics which is likely to need several months to finish. As I have limited resources only, I started this on my Ubuntu 12.04 (x86) laptop. Now I want to install some updates and actually restart the laptop (the “please reboot” message is just annoying).

Categories Q&A, Unix & Linux Tags process, reboot Leave a comment

Why are reboot, shutdown and poweroff symlinks to systemctl?

August 10, 2022 by Magenaut

In Arch Linux, if I do ls -l in /sbin, I can see that reboot, shutdown and poweroff are all symlinks to /usr/bin/systemctl. But issuing reboot, shutdown and systemctl commands obviously does not all have the same behaviour.

Categories Q&A, Unix & Linux Tags arch-linux, ln, ls, reboot, symlink Leave a comment

Why does reboot and poweroff require root privileges?

August 9, 2022 by Magenaut

What security risk is posed by not requiring this to have root privileges? The GUI provides a way for any user to shut off or restart, so why do the terminal commands need to be run as root?

Categories Q&A, Unix & Linux Tags reboot, root, security, shutdown, sudo Leave a comment

Reducing shutdown timeout for “a stop job is running”

August 9, 2022 by Magenaut

I’ve got node.js and pm2 installed on a Pi (Raspbian). PM2 was configured to start via pm2 startup and the init scripts it creates. Sometimes when I reboot, shutdown hangs for a few minutes on:

Categories Q&A, Unix & Linux Tags lsb, reboot, systemd Leave a comment

How long has my Linux system been running?

August 7, 2022 by Magenaut

Is there a command I can type in a terminal that will tell me the last time a machine was rebooted?

Categories Q&A, Unix & Linux Tags linux, reboot, uptime Leave a comment

How to continue a script after it reboots the machine?

August 7, 2022 by Magenaut

I’m writing a shell script in bash. At some point in the script, it detects that the machine needs to be rebooted before continuing. It issues:

Categories Q&A, Unix & Linux Tags reboot, shell-script Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress