adding systemd timer, instance, target
This commit is contained in:
parent
2adf9a87f5
commit
f34063e5dc
3 changed files with 20 additions and 0 deletions
2
systemd/petrified.target
Normal file
2
systemd/petrified.target
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Run Petrified Instanced Units via timers
|
||||||
7
systemd/petrified.timer
Normal file
7
systemd/petrified.timer
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Daily petrified update
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=daily
|
||||||
|
AccuracySec=1h
|
||||||
|
Persistent=true
|
||||||
11
systemd/petrified@.service
Normal file
11
systemd/petrified@.service
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Run petrified as %i
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/petrified
|
||||||
|
User=%i
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=petrified.target
|
||||||
Loading…
Add table
Add a link
Reference in a new issue