You are not logged in.

#1 2016-03-07 18:59:43

_pheinrich_
Member
Registered: 2014-05-26
Posts: 53

Systemd Timer OnBootSec

Hi,

I want to configure a systemd timer to start 5min after boot and trigger my movie.service

/etc/systemd/system/movie.timer

[Unit]
Description=Movie Backup Timer

[Timer]
OnBootSec=5min
OnUnitActiveSec=1d

[Install]
WantedBy=timers.target

/etc/systemd/system/movie.service

[Unit]
Description=Movie Backup Service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/snapshot.sh 3ac0cefc-9d90-44d6-8b1c-d4394fb3393f Movie

this is working like expected

systemctl start movie.service

But for some reason the timer is not listed in 'systemctl list-timers' after boot sad

And yes the I have executed

systemctl enable movie.timer

Last edited by _pheinrich_ (2016-03-07 19:18:02)

Offline

Board footer

Powered by FluxBB