Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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])

2
votes
0answers
844 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
403 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
670 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
257 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
482 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
75 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
98 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
751 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
546 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
94 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
144 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
384 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
422 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 ...
4
votes
1answer
854 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
238 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
723 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
516 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
455 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
165 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
83 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
2k 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
589 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
67 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
470 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
97 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
9k 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
97 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 ...
1
vote
1answer
1k 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
317 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
222 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
75 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 ...
4
votes
2answers
85 views

What forces a reboot?

I experience that my Ubuntu Linux requires a restart every now and then and also that it needs restart more often than in the old days (maybe it's because it updates more). I understand that ...
1
vote
1answer
78 views

Copy and paste across logout/reboot?

Is there an application or feature that allows a copy and paste across log outs or reboots? Linux rome 4.8.0-32-generic #34-Ubuntu SMP Tue Dec 13 14:30:16 UTC 2016 i686 i686 i686 GNU/Linux
0
votes
1answer
130 views

How can I tell my system to shutdown, stay off for X seconds, then restart?

I am trying to restart my Centos 6.7 system using the command line: init 6 But I need it stay down N number of seconds before starting back up again. I have been searching with Google, but I cannot ...
11
votes
2answers
22k views

Reducing shutdown timeout for “a stop job is running”

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: A ...
1
vote
0answers
434 views

Linux Not Performing Sync on Reboot

The production machines in my shop are running Red Hat Linux Server release 6.3. I have found that Linux appears to not flush file caches to disk upon reboot. Here is the following test I ran under ...
1
vote
0answers
519 views

Monit during reboot

We are seeing an issue using monit during a reboot or shutdown sequence. First some background of the some of the configuration of monit. Monit version is 5.5 Monit is started from inittab as null::...
0
votes
3answers
381 views

scheduler backup command history every restart

how to make scheduler backup command history every restart ? i try with crontab -e @reboot history > backup.txt and I reboot my pc there is a file backup.txt in directory but the file is empty, ...
2
votes
1answer
1k views

AutoSSH on startup with passphrase or otherwise protected key?

I need to setup a machine to AutoSSH on startup, but I would prefer a passphrase or some other form of protection to be placed on the key being used for SSHing. Is there anyway way to both protect the ...
0
votes
1answer
360 views

system occasionally fails to reboot/shutdown

I'm running a debian-wheezy based distro on an a set of armv5 boards. If I run the "reboot" command (either via ssh or serial console), it works fine most of the time. Occasionally (approximately ...
-1
votes
1answer
62 views

Two interfaces, both require the firewall to be up before starting

Say I have a couple of servers at DigitalOcean and I want them to talk to each others. DigitalOcean offers a WAN connection and a LAN connection. Problem is that both are insecure. The WAN is the ...
3
votes
1answer
452 views

How do I clean out my /tmp directory upon reboot?

I’m using Amazon Linux. Below is the uname info … [davea@mymachine ~]$ uname -a Linux sandbox.mydomain.com 4.4.18-35.99.amzn1.x86_64 #1 SMP Wed Jul 27 22:37:49 UTC 2016 x86_64 x86_64 x86_64 GNU/...
2
votes
1answer
138 views

Is there a way to perfrom a shutdown and after X seconds start the system again?

I would like to shutdown my system and boot it again after X seconds. Is there any command or service I can use to perform such task? The purpose: I perform the shutdown when I have the suspect ...
0
votes
1answer
2k views

My Debian /proc/cmdline gets reset every time I restart

Every time I restart my computer (running Kali Linux), the /proc/cmdline file gets reset, and reconfigures the root to /dev/sdb1, which leads to the boot failing (as /dev/sdb1 does not exist), and so ...
2
votes
0answers
702 views

Find out what's causing random restarts if /var/log/syslog is empty

I'm dealing with a server that randomly reboots every once in a while. Checked the power and nothing is wrong there. However the syslog is alway completely empty when it comes to the reboots, see the ...