[systemd-devel] issuing 'reboot' command does not print the familiar 'Restarting system.' message

Reindl Harald h.reindl at thelounge.net
Fri Apr 10 01:28:29 PDT 2015



Am 10.04.2015 um 10:13 schrieb Daniel Mack:
> If you want to omit that, and just tell the kernel to shutdown
> immediately without talking to PID 1, use the -f switch of the reboot
> commands

my god don't recommend the -f switch without mention that this skips 
*any* clean shutdown and leads in filesystem errors and possible data loss

we have on one machine the following alias because permanent hanging 
boots on machine with a lot of systemd-user processes casued by 
nss-mysql users and there is a reason for stop mysqld first, sync and 
touch /forcefsck first

alias reboot='/usr/bin/systemctl stop crond.service; /usr/bin/sleep 3; 
/usr/bin/systemctl stop mysqld.service; /usr/bin/touch /forcefsck; 
/usr/bin/sync; /usr/sbin/reboot -f'
         /usr/bin/systemctl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150410/0ce900db/attachment.sig>


More information about the systemd-devel mailing list