Questions tagged [reboot]

Reboot is a Unix command to restart the operating system. It is also a generic term for restarting any operating system.

604 questions
-1
votes
2 answers

How to tell from a launch daemon if macOS is currently restarting?

I have a launch daemon (written in C++) that runs on macOS. Is there a way to tell if the operating system is currently restarting? (Or the moment after the user hit Apple Logo -> Restart and the OS is winding down.)
c00000fd
  • 20,994
  • 29
  • 177
  • 400
-1
votes
1 answer

PuTTY SSH reboot command

I am trying to reboot a Unix based machine with SSH on windows. I am using PuTTY command, it looks like this : putty.exe -ssh user@my.ip.add.ress -pw password -m reboot.txt -t And the reboot.txt contains : reboot When I am connecting on ssh by…
DamienDne
  • 27
  • 1
-1
votes
1 answer

Python: React in script before shutdown

I have a python-script that is started at bootup-time as a cronjob to collect measurement-data: @reboot python /path/to/my_script.py The Linux-machine is rebooted daily at a certain time as a cronjob: 57 23 * * * sudo reboot At the time of the…
ye_ol_man
  • 37
  • 6
-1
votes
1 answer

PM2: Return list of stopped processes and restart only them

Basically the title. I've noticed recently that some of our processes are hitting an error during server start up which causes them to stop, and which pm2 does not restart them from automatically. Running pm2 restart \process name\ brings them…
SVill
  • 331
  • 5
  • 22
  • 55
-1
votes
1 answer

Powershell: Check computer to see if reboot is required otherwise skip

I am trying to user Test-Pendingreboot script to find out computers which need reboot, but I don't know how to take the results from Test-pendingreboot if $true the Force Reboot the computer. Any help will be appreciated Thank You
R0b
  • 11
  • 1
  • 3
-1
votes
1 answer

How to create an app to restart/reboot android phone using a button in android studio?

i want to restart my android phone by using a simple application which contain a button. By clicking the button my phone should be restart. I am using android studio latest version.
-1
votes
1 answer

Docker Apache Container looses static site data after reboot

I have a Docker container that serves some php-Pages with Symfony. It also has a connection to the database that works perfectly fine. The root directory is /var/www/html/public and the rough structure of /var/www/html is as follows (-files and…
Juliette
  • 966
  • 16
  • 35
-1
votes
1 answer

Make IIS Application stall/pause host machine reboot for x seconds

I have a HaProxy load balancer on front of some IIS webservers. Haproxy checks the iis apps on a specific path if they are up or in maintenance. I would like to make a solution, where I can safely reboot a random IIS machine and then have this to…
Stephan Møller
  • 1,247
  • 19
  • 39
-1
votes
1 answer

NVIDIA DevBox with Ubuntu 16.04 and 4.4.0-137-generic kernel randomly reboots and automatically shuts down overnight

I've recently stated using an NVIDIA DevBox that has an ASUS bios, with ther kernel version and ubuntu version mentioned above. For some reasons the machine can't really be left on overnight, as it is usual with other laptop and/or computer…
Arturo
  • 3,679
  • 6
  • 34
  • 43
-1
votes
1 answer

Autostart script on vps reboot?

I have a vps linux ubuntu 16.04 with some server installed. I'm tired of manually restarting my server all the time. What can I do solve this problem? My servers run with a "screen" All time when i need to restart a server i need do this: (Open the…
Gary0097
  • 11
  • 2
-1
votes
1 answer

How to disable shutdown and reboot from an app with system priviliges?

I am developing a System App (i.e. an app signed with the device manufacturer's key) for non-rooted devices. I need to prevent the user from shutting-down or rebooting the device. If necessary and possible, disabling the power button completely…
fadedbee
  • 42,671
  • 44
  • 178
  • 308
-1
votes
1 answer

Stop threads and re-running them

I have this program in Java (for audio communication with another host) that starts with an instantiation of 2 objects (that are 2 extension of Thread class). In a certain time i need to reboot the program: How can i stop this threads and reboot…
narraccino
  • 43
  • 9
-1
votes
1 answer

OS X / Synology NAS stuck share (home / home-1)

I am using Mac OS X 10.11.6 and VirtualBox 5.1.12, with a share ("home") on my Synology NAS. I have had this issue for a long time but have never got round to finding a proper solution. I use home folders from the NAS share, when looking at the…
Jimmy
  • 31
  • 5
-1
votes
1 answer

How can I reboot from windows to windows again? (remotely , windows-ubuntu multiboot)

I use Windows 10 and ubuntu 14.04LTS on desktop I want to use desktop from my laptop remotely. My grub select ubuntu as a default os boot system. And I know how to reboot the desktop from ubuntu to windows remotely (sudo grub-reboot boot_number &&…
MTHL
  • 123
  • 5
-1
votes
2 answers

Android code to boot device without press any power button?

Is it possible to boot the device when the battery is already inserted, and then main power is connected, without the help of any power switches? Is there any ADB command to boot up the device after completely turned off? Please keep in mind: I am…
khushhal goyal
  • 97
  • 2
  • 10