1 2 3 4 5
#!/bin/sh echo "reboot" > /var/run/rebootctl sudo killall -USR1 startkde_move sudo killall X