<div dir="ltr">In that case, you could also just do something like this:<div># for i in {u,s,b}; do echo $i > /proc/sysrq-trigger; done</div><div>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.</div><div><br></div><div>Cheers,</div><div>Brian</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Mar 7, 2017 at 1:31 PM David Strauss <<a href="mailto:david@davidstrauss.net">david@davidstrauss.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">> But I don't want to wait for those services to shutdown.<br class="gmail_msg"><br class="gmail_msg"></div><div dir="ltr" class="gmail_msg">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.</div>
_______________________________________________<br class="gmail_msg">
systemd-devel mailing list<br class="gmail_msg">
<a href="mailto:systemd-devel@lists.freedesktop.org" class="gmail_msg" target="_blank">systemd-devel@lists.freedesktop.org</a><br class="gmail_msg">
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br class="gmail_msg">
</blockquote></div>