Add systemd user session files
This commit is contained in:
parent
a4ed52de4f
commit
46bd63635e
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Send email to user
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c "/bin/systemctl --user status %i | /usr/bin/mail -s \"[SYSTEMD] Failure %i\" $USER"
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Restic backup service
|
||||
Documentation=man:restic(1)
|
||||
OnFailure=notify-email@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/path/to/restic-cron --verbose
|
||||
IOSchedulingClass=idle
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Restic backup weekly
|
||||
|
||||
[Timer]
|
||||
OnCalendar=Tue *-*-* 10:00:00
|
||||
Persistent=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
Loading…
Reference in New Issue