initial git commit
This commit is contained in:
commit
ede3979533
5 changed files with 35 additions and 0 deletions
7
templates/touch-file.service.j2
Normal file
7
templates/touch-file.service.j2
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description=Touch {{ file }}
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User={{ user }}
|
||||
ExecStart=/usr/bin/touch {{ file }}
|
12
templates/touch-file.timer.j2
Normal file
12
templates/touch-file.timer.j2
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Touch {{ file }} regularly
|
||||
|
||||
[Timer]
|
||||
OnCalendar=hourly
|
||||
AccuracySec=30m
|
||||
Persistent=true
|
||||
Unit=touch-file-{{ file | replace('/', '-') }}.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue