How to schedule shutdown of the Jolla ? [answered]
asked 2016-05-16 16:13:57 +0200
This post is a wiki. Anyone with karma >75 is welcome to improve it.
Hi,
I want my Jolla to automaticaly shutdown at 11 PM and power on at 7 AM.
I've just tried the crontab to schedule a shutdown at 3PM, but it didn't work :
$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.2836 installed on Mon May 16 15:08:04 2016)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
10 15 * * * /usr/sbin/shutdown -h now
Can you help ?
Maybe it needs to be run as root instead of normal user?
avhakola ( 2016-05-16 16:22:21 +0200 )editI've just tried with root, it did'nt work either :
SebM ( 2016-05-16 16:31:50 +0200 )editDid you insert a blank line at the end of the crontab-file?
MichaelS ( 2016-05-16 16:59:17 +0200 )editThe command to 'poweroff' is actually
shutdown
.If you open Terminal, type in
shutdown -h 15:00
- the device will 'poweroff' at 3pm.The
Spam Hunter ( 2016-05-16 16:59:42 +0200 )editshutdown
command has its own built in scheduler.This didn't work with the
SebM ( 2016-05-16 19:03:58 +0200 )editshutdown
command either :