I'm using gshutdown to automatic shutdown the machine at a specific time. But on arch doesn't work right, instead of shutdown/reboot machine just quit gnome session and logout the user.
Using custom commands and "systemctl shutdown", "systemctl reboot" the commands work, but need to give password when the time pass, so is useless, because isn't in fact automatic.
Is there any fix, other way, or app, which can simply do this job?
Last edited by dancer69 (2013-02-04 16:44:10)
You can use systemctl shutdown set up as a root cron job.
Login as root
Then set up as specified time. The link below is a good reference page for cron.
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / - My Pastebin
I haven't use cron ever, but I don't want the automatic shutdown to be done everyday and the same specified time. I prefere to use gshutdown, because I can simply activated when I want it and specify the the time at this moment. When I said other way I mean with the same or similar flexibility and simplicity.
So, can cron provide those?
I found a way to make it work:
User_Alias SHUTDOWNERS = user1, user2 SHUTDOWNERS ALL = NOPASSWD: /sbin/shutdown
on sudoers and then use:
sudo shutdown -h now(or -r now to reboot).
Last edited by dancer69 (2013-02-04 16:43:37)