Hi, I would like to write a program (daemon) which will be automatically started by systemd at boot which will allow me to reboot or restart my computer through commands sent via xmpp. The xmpp part (xmpp client) and starting that program is no problem.
But how can I reboot/restart the computer from the xmpp client? I don't want the xmpp client to run as root all the time. I would use something like system('shutdown', '-r', 'now'); in the xmpp client, and that does require root privileges. To make things more complicated, systemd will probably interfere in some ways, and selinux also may get in the way. So how I can do that? The background is that some idiots have decided that pressing Ctrl+Alt+Del doesn't reboot the computer anymore but, at best, restarts after 60 seconds if I'm logged in to a gnome session or, if I'm not logged in --- like when the screen saver logged me out --- it does nothing. It doesn't seem to work when I'm on the console, either. That totally sucks when the display remains black and doesn't come back no matter what you do. In such cases, I still want to be able to reboot or to shutdown the computer instead of having to hold the power button until it turns off, and without pressing the reset button. Preferably, I'd like to get Ctrl+Alt+Del to work again like it should, but that's probably something we can only dream of these days :( -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/