You are not logged in.

#1 2016-12-30 01:00:58

ozooha
Member
Registered: 2009-09-29
Posts: 184

systemd timer error

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

#2 2016-12-30 01:36:20

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: systemd timer error

The error tells you exactly what's wrong "Unknown lvalue 'OnCalender' in section 'Timer'". Check your spelling.

Offline

#3 2016-12-30 15:20:26

ozooha
Member
Registered: 2009-09-29
Posts: 184

Re: systemd timer error

My God sooooooo embarassed. yikes

Offline

Board footer

Powered by FluxBB