You are not logged in.
Pages: 1
Setting a systemd timer to shut my PC daily at 1 am and then wake it up after 7 hr
/etc/systemd/system/myshutwake.timer
[Unit]
Description=Runs myscript daily to shut and wake the PC[Timer]
#Runs daily at 1 AM
OnCalender=*-*-* 01:00:00
Unit=myshutwake.service[Install]
WantedBy=timers.target
/etc/systemd/system/myshutwake.service
[Unit]
Description=My Script To Shut and wake the PC[Service]
Type=simple
ExecStart=/usr/local/bin/shutwake
when I execute this
systemctl start myshutwake.timer
I get the following error
[/etc/systemd/system/myshutwake.timer:5] Unknown lvalue 'OnCalender' in section 'Timer'
Dec 29 19:10:40 myLinux systemd[1]: myshutwake.timer: Timer unit lacks value setting. Refusing.
What am I doing wrong?
OZooHA
Last edited by ozooha (2016-12-30 01:07:16)
Offline
The error tells you exactly what's wrong "Unknown lvalue 'OnCalender' in section 'Timer'". Check your spelling.
Offline
My God sooooooo embarassed. ![]()
Offline
Pages: 1