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
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 ...
1
vote
1answer
713 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
265 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 ...
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
101 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?
3
votes
1answer
584 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
95 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 ...
1
vote
1answer
625 views

A Reboot() command with failover

I'm implementing a Reboot() call in my application. It's an embedded application, so no console, keyboard or power switch. The Reboot() must eventually restart the system no matter what. Ideally, I ...
6
votes
1answer
925 views

Kernel update - reboot needed or not?

I just updated our AWS Linux Server (which uses yum) and a new kernel is installed: kernel-4.1.10-16.27.amzn1.x86_64. It didn't state anything about restarting. According to this answer here I ...
3
votes
1answer
910 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 ...
2
votes
1answer
174 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 ...
1
vote
0answers
243 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
760 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 ...
0
votes
1answer
809 views

Two implementations of reboot?

Why do there seem to be two implementations of reboot on my linux system? # find . -name "reboot" ./etc/init.d/reboot ./sbin/reboot
10
votes
1answer
23k views

“A stop job is running…” on shutdown [duplicate]

Almost every time when I'm shutting down or rebooting the system I get the following message before the system actually shuts down: A stop job is running for Session 1 of user xy It waits for 1:...
0
votes
1answer
2k views

Requiring a script to sync ramdisk before and after reboot

On a specific machine I use a lot of RAM to serve websites really fast directly from RAM (which by the way is working amazingly well). For this I have mounted a ramdisk in /etc/fstab (in debian 7, via ...
0
votes
0answers
469 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 ...
0
votes
1answer
84 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
0answers
609 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
69 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 ...
5
votes
1answer
4k views

When can one reboot from inside a chroot environment?

Sometimes when I chroot into some folder , I could use reboot to reset my box, but sometimes I can't. So I want to know why I could do that sometimes and why. UPDATE The chroot environment is ...
1
vote
0answers
103 views

How to force script execution before shutdown or reboot is executed? [duplicate]

I have this service enabled by systemctl: [Unit] Description=The Oracle Database Service After=syslog.target network.target Wants=network.target [Service] LimitMEMLOCK=...
2
votes
0answers
178 views

How to force script execution before shutdown or reboot is executed? RHEL 7

I have this service enabled by systemctl: [Unit] Description=The Oracle Database Service After=syslog.target network.target Wants=network.target [Service] LimitMEMLOCK=infinity LimitNOFILE=65535 ...
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 ...
0
votes
1answer
135 views

Nothing survives reboot in Debian Jessie

Running RasPBX based on Debian Jessie - I tried to change a few .conf files, but they always reverted following reboot. I initially thought this was dhcp messing with things, but it turns out nothing ...
2
votes
0answers
500 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 ...
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 ...
0
votes
1answer
371 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
vote
0answers
99 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
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
337 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 ...
1
vote
0answers
227 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), ...
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
76 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 ...
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 ...
0
votes
3answers
2k views

Start Server remotely using SSH

I am trying to start my server remotely with this: ssh root@xxx.xx.xx.xx /sbin/reboot And keep getting this back ssh: connect to host xxx.xx.xx.xx port 22: Operation timed out Why can't I start ...
12
votes
2answers
24k 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
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
134 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 ...
0
votes
1answer
441 views

VM Machine rebooted, can't find how?

One of my VM machine was rebooted yesterday, but can't find how & who did it. In the log I can only find "receiving signal 15, terminated"
2
votes
0answers
1k views

How does auto reboot happen?

For no apparent reason, my machine is rebooting. last reboot brings lines like this: reboot system boot 3.13.0-24-generi Tue Dec 9 18:57 - 19:09 (00:11) reboot system boot 3.13.0-24-...
1
vote
0answers
538 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::...
1
vote
0answers
446 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 ...
0
votes
3answers
421 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, ...
-1
votes
1answer
66 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 ...
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 ...
3
votes
1answer
497 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
157 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 ...