add systemd user files
parent
74e02ccf77
commit
9968962bd0
|
@ -1,3 +1,4 @@
|
|||
alias usysctl='systemctl --user'
|
||||
|
||||
# From https://mastodon.xyz/@CarlCravens/105758509287927276
|
||||
alias clear='clear; tput cup $LINES 0'
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
timers.target.wants
|
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
Description=Restic backup service
|
||||
OnFailure=systemd-notify@%n.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/earne/.dotfiles/.restic/restic-do backup
|
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Daily restic backup
|
||||
|
||||
[Timer]
|
||||
OnBootSec=6min
|
||||
OnCalendar=*-*-* 21:00:00
|
||||
#Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Restic backup maintenance - deleting and checking
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/earne/.dotfiles/.restic/restic-do maint
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=Weekly restic backup maintenance - deleting and checking
|
||||
|
||||
[Timer]
|
||||
OnCalendar=weekly
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -0,0 +1,6 @@
|
|||
[Unit]
|
||||
Description=Notify shell about unit failure
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=notify-send --urgency=normal '%i failed.' 'See "systemctl --user status %i" and "journalctl --user-unit %i" for details.'
|
|
@ -0,0 +1,9 @@
|
|||
[Unit]
|
||||
Description=UxPlay
|
||||
|
||||
[Service]
|
||||
ExecStart=/home/earne/ghq/github.com/FDH2/UxPlay/uxplay
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
Loading…
Reference in New Issue