[systemd-devel] systemd reboot problem

Brian Kroth bpkroth at gmail.com
Wed Mar 8 02:46:28 UTC 2017


In that case, you could also just do something like this:
# for i in {u,s,b}; do echo $i > /proc/sysrq-trigger; done
For "Remount read-only, Sync, (re)Boot".  There are also hotkey sequences
to do that (the modern equivalent of the three fingered salute) which might
be more appropriate in the case of a hanging reboot.  Have a look at the
dmesg output of "echo ? > /proc/sysrq-trigger" or the sysrq-trigger info in
the kernel documentation for other info.

Cheers,
Brian

On Tue, Mar 7, 2017 at 1:31 PM David Strauss <david at davidstrauss.net> wrote:

> > But I don't want to wait for those services to shutdown.
>
> Then there's no reason to interact with systemd if you want to force an
> immediate, unclean reboot. You just want something like the reboot syscall
> with LINUX_REBOOT_CMD_RESTART.
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20170308/2d3be97e/attachment-0001.html>


More information about the systemd-devel mailing list