Tag Info

Hot answers tagged

26

You will need to modify the group policy that is applied to the servers. Open up the Group Policy Management Console and navigate to Computer Configuration >> Administrative Templates >> System and select "Display Shutdown Event Tracker." Disable that option.


11

If you do not want to change via Polices you can always issue the shutdown command to avoid the question. shutdown /s /t 0 /s = shutdown /t = time till shutdown 0 = immediely


11

If the system has reached runlevel 0, it can be safely powered off. Not so many years ago, before ATX, you had to turn off a PC system by hand because it couldn't power down itself.


8

Running the following as an elevated admin: reg.exe add "HKLM\SOFTWARE\Policies\Control\Microsoft\Windows NT\Reliability" /v ShutDownReasonOn /t REG_DWORD /d 0 /f and the log off and on again should to the trick. This is quicker than using group policies which you should use when you are in a domain and want to apply this change to many servers.


8

There is no better way to restart your server by using anything else than any those commands. shutdown is the most common way to stop your system. reboot is a wrapper round shutdown which does some harddisk maintenance (syncing and/or putting in standby mode and not really relevant). New versions of reboot (>2.74) will initiate shutdown if not in runlevel ...


5

The Procmon utility from Windows Sysinternals is capable of doing comprehensive logging of all processes during startup, logoff, and shutdown. For detailed information, read the Windows Sysinternals Administrator's Reference, section 2, chapter 4. There is a subsection titled Logging Boot, Post-Logoff, and Shutdown Activity on confiuguring the boot logging ...


5

Q. If my spot instance is automatically terminated due to my max bid being exceeded, is it a clean shutdown -- as if a user clicked Start>>Shutdown ? Or is it a hard shutdown -- as if someone just yanked out the power cord? It might be a clean shutdown, but it also might be a hard shutdown. Amazon's wording implies they try to make it clean but ...


3

"/sbin" is not in default cron PATH. So you need to add it there. you can check it with: */2 * * * * /bin/echo "$PATH" > /home/myuser/my.log Result: [root@localhost vagrant]# cat my.log /usr/bin:/bin Also you can see it in the mail headers sent by cron: Content-Type: text/plain; charset=UTF-8 Auto-Submitted: auto-generated X-Cron-Env: ...


3

Shutdown.exe still ships with the new versions of Windows. Simply run: shutdown /i and the following prompt will appear, allowing you to shutdown/reboot 1 or more servers with a Reason comment:


3

There is no difference in them. Internally they do exactly the same thing: 1. reboot uses the shutdown command (with the -r switch). The shutdown command used to kill all the running processes, unmount all the file systems and finally tells the kernel to issue the ACPI power command. 2.init 6 tells the init process to shutdown all of the spawned ...


3

$ dpkg -S /sbin/shutdown sysvinit-core: /sbin/shutdown You probably "upgraded" to systemd, removing shutdown and friends. If so, you now need to do systemctl poweroff to shutdown the system. Why does systemd not provide an alias to shutdown? Why not indeed... EDIT: /sbin/shutdown should be available if you install the systemd-sysv package. It would be ...


2

sshd sessions on my (rhel) server may be identified by: ~# ps -ef |grep sshd: root 12120 1 0 10:18 ? 00:00:00 sshd: sysope [priv] sysope 12132 12120 0 10:18 ? 00:00:00 sshd: sysope@pts/2 killing those processes will immediately close the connections. So adapt your sshd service file for systemd like this: [Unit] Description=SSH ...


2

That's a good habit, congrats. The traditional way to enable/disable the Shutdown Event Tracker through a Group Policy setting (Computer Configuration > Administrative Templates > System / Display Shutdown Event Tracker) does not seem to work anymore. The GUI does not seem to offer this functionality anymore. Your options are to use the shutdown.exe with ...


2

As far as i can see, you are having a cyclic dependecy. You are telling systemd to start PHP-fpm before Apache and at the same time after Apache. This cannot work the way you want it to. In your httpd.service file specify the following: Requires=mariadb.service php-fpm.service After=mariadb.service php-fpm.service The explanation of the options for ...


2

Solved: It's CATALINA_OPTS not JAVA_OPTS. The HOWTOs are wrong. Reference: Tomcat Docs Regarding Profiler


2

I believe that setting will only result in a Critical error message and SNMP trap triggering. Perhaps you could set up some SNMP collector that is able to run actions on trapped messages. (Ipmi poweroff, email.)


2

It's probably not running because it's unable to find the binary. Without any error log though, that's just an assumption I'm making. Try adjusting the s3cmd part in your script to use its full path. I'm not sure how you installed s3cmd (either via yum or manually), but you can find out its full path by running which s3cmd.


2

I'm sure the OP has found the other answers useful but future readers may be interested in a powershell version. Works out of the box in 2008 or up, and maybe in 2003 if powershell is installed. if ( -Not (Test-Path 'registry::HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability')) { New-Item -Path ...


1

You can enable the "highly detailed status messages" option in group policy (local or domain). Computer Configuration >> Administrative Templates >> System >> Verbose vs normal status messages. You can also do a registry edit at HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Policies \ System and add a new DWORD verbosestatus with a ...


1

Outside of what was mentioned about Windows Updates, AV scans and boot up time. You could leverage the same Scheduled Task GPO you're mentioning to run a batch file on the computer with shutdown /f /t 0. Group policy location: Computer Configuration, expand the Preferences folder, and then expand the Control Panel Settings, Right-click the Scheduled Tasks ...


1

This is a case where you shouldn't be using two UPS units, where each feeds a power supply. That may be a big part of your problem, as a single UPS can restore the previous power state following an outage (this is the default in the HP ProLiant BIOS as well). Having two seems to mess up this logic. Are you connected to the UPS via serial or USB cable? ...


1

There is maybe a cleaner way to achieve this, however the following works on my Ubuntu 12.04 (sorry, don't have 11 under hands). Under /etc/rc0.d you should find a file named S35networking which is in fact a link to /etc/init.d/networking. In this file locate the stop) for the case statement and add your command line/script here, at first line. It will be ...


1

The timer is part of the windows update service not the OS itself so you can stop it by stopping the service try net stop "windows update"that should do the trick. But this is a temp solution since the service will start again when you reboot later, I guess what you really want is forcing the Windows to do the restart at the update scheduling time, ...


1

Pros to turning the server off when idle: Lower (zero) power consumption, which saves on both electricity and cooling costs Less wear on fans, which is the most likely thing to die on the GPU (or the rest of the server, probably. If you have a scheduled shutdown every night anyways, scheduling windows updates becomes a lot easier Cons to turning the ...


1

I think there are 3 different ways to do this: Go to start > control panel > power options > advanced. I think you can change the options there. Go to the BIOS, there must be ACPI setting that can override Windows locks. You can force the shutdown using "shutdown -i" from a command prompt. Hope this helps.


1

Check out AutoEndTasks: You can set it for all users by creating the key here vs HKCU: HKEY_USERS.DEFAULT\Control Panel\Desktop Additionally, there is some tuning that can be done via group policy that can be found here: Computer Configuration>Administrative Templates>System>Shutdown Options> Turn off automatic termination of applications that block or ...


1

The fact you can't power down a 2012 server when a session is locked is probably by design. I faced a similar need and don't know any policy or registry change to allow that. I used a simple trick: I captured the power button event which simply run my favorite shutdown.exe with the desired parameters after a timeout. If you use the correct shutdown ...


1

When giving remote instructions to end-users and customers, I instruct them to use poweroff to shutdown and power the system off. If they want a warm reboot, I suggest that they use the reboot command. I suppose one could say that issuing Ctrl-Alt-Delete also accomplishes this ;)



Only top voted, non community-wiki answers of a minimum length are eligible