Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [reboot]

rebooting is the process of bringing down a system in a state where it will complete reinitialise, without removing power from the system. Use this tag for question related to problems with being able to reboot a system. For problems booting into a particular installed OS, use the appropriate bootmanager tag (e.g. [grub])

Filter by
Sorted by
Tagged with
4
votes
1answer
20k views

sudo reboot -> Failed to talk to init daemon

On my Raspberry Pi runs jessie. After installing mosquitto I can not run sudo reboot anymore. This error appears: "Failed to talk to init daemon.". What could be the problem? I have already ...
3
votes
0answers
309 views

Save GNU Screen session layout after reboot

I would like to retain/restore the following properties of a GNU Screen after reboot: Name and number of screen sessions Name and number of windows inside every screen Screen splitting (i.e., ...
1
vote
1answer
2k views

Why `journalctl --list-boots` doesn't match what `uptime` and `who -b` report?

Here's a test script I used: last_reboot=$(last reboot | grep 'still running' | awk '{for (i=5; i<=NF; i++) printf $i FS}' | awk '{for (i=1; i<=NF - 2; i++) printf $i FS}') if [ "$last_reboot" ]...
0
votes
0answers
53 views

Safe reboot cron job with fallback on SysRq reset issue

I'm trying to setup a cron job to reboot devices daily. With a safe callback to a SysRq reset if for some reason the reboot does hang (issue being that SSH gets killed and the device never reboots so ...
1
vote
1answer
1k views

Fedora workstation 27 freezes after login

I am using Asus zenbook pro ux501vw and have recently successfully installed fedora 27 and then shut down with it. When I restarted it for the very first time, I typed in my password and it went to a ...
3
votes
1answer
788 views

Software cold reboot

I'm finding that grub-reboot works only on a cold reboot (shutdown and then manual boot), but not on a simple reboot or shutdown -r. With these usual reboot commands, Ubuntu 16.04 occasionally shows a ...
1
vote
2answers
1k views

How to run shell script in background while start On CentOS? [duplicate]

I have a shell script contain loop like this: while true do if ... ; then ... else ... break fi done I want this script to run backend while OS start. I have try to add this script ...
1
vote
2answers
175 views

How to check if you have permission to reboot without actaully running the reboot command?

Is there a way to check if you have permission to reboot without actually running sudo reboot? I don't want to try it, because if I have permission, then it will just reboot the server and I don't ...
1
vote
1answer
145 views

Why isn't my Apache server starting automatically wnen I reboot my server?

I'm using Amazon Linux. I just Apache via yum, however, I can't get it to automatically start when I reboot my server, despite the fact it starts on the command line ... [myuser@mymachine ~]$ sudo ...
-1
votes
3answers
2k views

SSH service not working after fresh restart

I have a ASUS Tinker Board. I have been customizing the provided Debian image so that I can use the board. However, the SSH service never works after a fresh boot, until I login to the server ...
0
votes
1answer
571 views

Problem with rebooting Linux Mint 18 Cinnamon 32-bit

I was browsing on FireFox in Linux mint 18 cinnamon and I couldn't log in my google account, so I closed the browser, but after I tried to turn it back on, it showed me a notification: "Firefox is ...
0
votes
1answer
322 views

restarting a script upon boot in screen/tmux

I have a script that runs in dot net, that works fine when starting it through putty- either in screen or in tmux. However i have been trying for in total over 8 hours to get it to work with systemd ...
5
votes
1answer
1k views

Is the `reboot` command safe to use?

The reboot command appears to work differently depending on the distribution. For example on Ubuntu/Debian and CentOS it shuts down services first while on Arch Linux it reboots immediately (at least ...
0
votes
1answer
854 views

Difference between reboot -p and reboot

I understand that -p stands for power off. The man page says: -p, --poweroff Power-off the machine, regardless of which one of the three commands is invoked. But exactly what ...
2
votes
0answers
909 views

Debian Stretch hangs on reboot

After upgrading my Jessie machines to Stretch, they no longer cleanly reboot, even if using the Jessie kernel. I tried reboot=BIOS, ACPI, PCI, even force=ACPI, but none work. The reboot hangs on: [ ...
1
vote
1answer
1k views

Does systemd have a different timeout setting when rebooting vs normal restart of a service?

Does systemd use a different timeout setting for stopping a running daemon (e.g., rsyslog) when rebooting the system (e.g., by running reboot) vs when you simply restart the daemon (e.g., systemctl ...
0
votes
2answers
1k views

Problem when i shutdown the system or reboot with Linux Mint 18.1 KDE

Anytime i try to shutdown or reboot the system, desktop and everything is closed but this appear: The system is blocked and i'm obliged to shutdown the Notebook manually with the button, i have fear ...
5
votes
2answers
482 views

Make reboot work only with sudo

I have a laptop with Ubuntu 16.06. I am able to execute reboot command as a non-root user without sudo. How can I change this behaviour so that I am not able to run reboot without sudo? I tried ...
1
vote
1answer
801 views

systemd “oneshot” service to trigger poweroff

Show a systemd Type=oneshot service which triggers a system power-off. For example this could be used for sigpwr.target, to avoid the problem that sigpwr.target is not started with the job mode ...
3
votes
2answers
4k views

What is the practical difference between `systemctl start reboot.target` and `systemctl reboot`?

There are two documented differences between start reboot.target and reboot. But start reboot.target is what is triggered by ctrl-alt-del.target. Does it matter that ctrl-alt-del.target will omit --...
1
vote
0answers
300 views

When I killed tty1 root user on ubuntu14.04,the system reboot. Why?

When I enter who command in the shell, i got this: root tty1 2017-04-01 12:21 langxiaowei pts/2 2017-07-21 18:05 So, for the safe, I want to kill the root user. Then I enter the comamnd ...
5
votes
1answer
727 views

Understanding the output of last reboot shutdown

When I use the command last -x reboot shutdown I get an output like this: reboot system boot 2.6.32-279.14.1. Tue Jul 18 22:03 - 03:20 (05:17) shutdown system down 2.6.32-279.14.1. Tue Jul 18 ...
0
votes
3answers
77 views

Running a script with shutdown in the middle

I have a script that is running some package updates and I want to do a reboot after they are done. The only problem is there are executions that must happen after the reboot occurs. Obviously the ...
1
vote
1answer
104 views

Join an interactive session of a process launched from rc.local

Is there a way to join an interactive session of a process that was ran on boot with /etc/rc.local, or send it "stop" over STDIN on reboot/shutdown and wait for it to end before shutting down?
9
votes
1answer
799 views

A wall message warned of impending reboot or shutdown, but I missed the details. How can I obtain them?

While some output was being written to my terminal, a wall message passed by. It went too fast for me to read it. All I could tell was Broadcast message from The system is going down for And even ...
3
votes
1answer
697 views

Will 'at' command be executed after the reboot? [duplicate]

If I schedule something with 'at` like, $ at noon warning: commands will be executed using /bin/sh at> echo "Will I be created?" > /tmp/at_test at> <EOT> job 12 at Fri Jun 30 12:00:00 ...
0
votes
0answers
96 views

Ubuntu 16.04 Server - Delayed Rebooting Issue

I have an Ubuntu 16.04 server that once rebooted rather immediately when I would issue this command: sudo reboot After this, I would typically be able to "log back in" in about 30 to 60 seconds. ...
2
votes
1answer
152 views

What is the necessity of the commands `halt --poweroff` , `halt --reboot`, `poweroff --reboot` and `reboot --poweroff`?

In UNIX the following commands are present: halt --poweroff //does poweroff halt --reboot //does reboot poweroff --reboot //does reboot reboot --poweroff //does poweroff However the ...
-4
votes
1answer
408 views

VMWare error with Kali Linux

I have installed Kali Linux 2017.1 x64 in VMware Workstation Pro 12.5.6 along with the VMware tools (Is that the culprit?). My host is Windows 10 Creators Update 1703 build 15063.322 I have been ...
1
vote
3answers
451 views

Running a script with systemd on shutdown or reboot

I've made a script which just empties a folder from its contents and then shutdown the pc. I was wondering if there is a simpler way of doing that automatically when I shutdown or reboot the pc ...
3
votes
1answer
1k views

Restart system if it runs out of memory?

I need to run some memory heavy tests in a remote computer through SSH. Last time I did this, the computer stopped responding, and it was necessary for someone to physically reboot it. Is there a way ...
1
vote
0answers
253 views

What is exactly the procedure that makes reboot possible in Linux?

I've been wondering how a linux pc (e.g. Debian) is restarted. To an "outsider" a pc seems to be completely shut down just before it is started again; is it so? I had a look at the source code of ...
0
votes
1answer
821 views

How to fix reboot broken by kernel update

I am working on an embedded system built around Atmel ARM926EJ-S based on rather old ARM core ARMv5TEJ. I have a Debian 8 system that used to work for that hardware until I had to update the kernel ...
3
votes
2answers
589 views

Can systemd preserve its state across reboots?

I'm working on setting up a Linux server that will have dozens of daemons controlled by systemd. The daemons are grouped into targets so that they can be brought up and down in groups, but the system ...
0
votes
0answers
509 views

cron @reboot doing nothing

Running Mint 18.1 Serena, but I am sshing into the box vs. using the gui. I've tried everything. Here's my cron entry: @reboot sleep 60;/bin/sh /home/test/Applications/scripts/startup.sh This is ...
2
votes
1answer
204 views

Unix server constantly rebooting

I have a Unix server that has started rebooting every few minutes. I tried to trace the source of the problem by logging the process tree at the time reboot is called, as described by this question's ...
0
votes
1answer
87 views

Debian 8 VPS - a reboot regenerates host ssh keys

I have problem, because each reboot of my Debian 8 is generating new host RSA keys. How to avoid this?
2
votes
1answer
3k views

Ubuntu machine randomly reboots [closed]

I have a Ubuntu machine which randomly reboots itself: last reboot reboot system boot 2.6.32-042stab12 Sat Mar 25 23:48 - 12:42 (11:53) reboot system boot 2.6.32-042stab12 Wed Mar 22 18:28 - ...
2
votes
0answers
658 views

How to restart a systemd-nspawn container after the guest issues a reboot command?

I have systemd-nspawn containers which are enabled and start upon the boot of the host server. The problem I have is that they do not understand the reboot command issued on the guest: the container ...
1
vote
0answers
73 views

Run leafpad with CRON at reboot [duplicate]

Why any of my crontab lines do not work? I have been restarting my Debian few times and no leafpad window has appeared. Debian Jessie with LXDE. crontab run as root: # Edit this file to introduce ...
2
votes
0answers
564 views

Why reboot time is incorrect in last -x

My server suddenly crashed and rebooted today and I want to find the reason. me@raspberrypi$ last -x me pts/0 xxx.xxx.xxx.xxx Mon Feb 27 13:43 still logged in me tty1 ...
2
votes
1answer
101 views

Linux Mint - changing settings is ineffective (even without reboot)

After some update, the annoying and frustrating situation is the following. After each reboot the update icon shows the blue circle with '1' inside it; if I click on it, the update manager opens and ...
0
votes
1answer
3k views

Stop systemd service after another at shutdown and reboot

I want to run a script at shutdown and reboot after rsyslog has stopped. What do I have to write in my systemd service file /lib/systemd/system/test.service. So far I have [Unit] Description=test ...
5
votes
2answers
10k views

How to execute scripts in /usr/lib/systemd/system-shutdown/ at reboot or shutdown?

According to this answer and this bug report one can simply drop your script in /usr/lib/systemd/system-shutdown/ or for Debian in /lib/systemd/system-shutdown/ to have it executed at reboot or ...
1
vote
0answers
102 views

KDE: kwallet error after relogin

Every time I log out of KDE session and log back in, a window pops up asking me to provide password for kwallet. And then it won't accept the password at all. So I need to reboot to make it right ...
2
votes
1answer
2k views

Linux /srv directory permissions revert on reboot

I have a problem that the access permissions for group and world access on the /srv directory get reverted on reboot. Whenever I grant the world write access using sudo chmod a+rwx /srv then all is ...
0
votes
1answer
373 views

Why can't I find the -f option for shutdown command in man?

I read on some linux blogs that to reboot without going through fsck you can use the following command: shutdown -rf now I read that the -f flag means "reboot fast". However, I cannot find any ...
0
votes
1answer
2k views

Stopping an infinite reboot loop from /etc/rc.local

Long story short, an unfortunate series of development mistakes on my part has led /etc/rc.local to quickly execute reboot (on a Pi in my case). The machine is now stuck in an infinite reboot loop. ...
1
vote
0answers
246 views

Process got killed before ExecStop script is executed

systemd unit file was created to control the start and stop of Postgres. It works just fine as expected if systemctl start or start command is used. But, if the machine is rebooted (systemctl reboot), ...
1
vote
0answers
84 views

Origin of shutdown vs reboot [duplicate]

I got used to using the shutdown command like: shutdown -t now So when I started wanting to use reboot in the same way I was confused at first because to reboot now you need to use: reboot -n I ...