44 lines
1.2 KiB
Desktop File
44 lines
1.2 KiB
Desktop File
[Unit]
|
|
Description=Make %i-backup from system-subvolume
|
|
|
|
#ConditionPathExists=!/run/btrfs-actions
|
|
#ConditionDirectoryNotEmpty=!/run/btrfs-actions
|
|
#ConditionPathExists=!/run/mkbackup
|
|
ConditionPathExistsGlob=!/run/mkbackup/*
|
|
#ConditionPathExists=!/run/btrfs-actions
|
|
#ConditionDirectoryNotEmpty=!/run/mkbackup
|
|
|
|
Requires=set-environ.service
|
|
Wants=dpkg-get-selection.service
|
|
#Wants=mkbackup-transfer.service
|
|
After=set-environ.service dpkg-get-selection.service mkbackup.target
|
|
#After=set-environ.service dpkg-get-selection.service
|
|
#Before=mkbackup-transfer.service
|
|
|
|
Conflicts=suspend.target shutdown.target sleep.target
|
|
OnFailure=status-email-root@%n.service
|
|
|
|
[Service]
|
|
#Type=oneshot
|
|
#Type=simple
|
|
Type=idle
|
|
#EnvironmentFile=/etc/mkbtrbackup.conf.d/%i.conf
|
|
|
|
#BusName=at.xundeenergie.mkbackup
|
|
RuntimeDirectory=mkbackup
|
|
|
|
Nice=10
|
|
IOSchedulingClass=3
|
|
#IOSchedulingPriority=
|
|
CPUSchedulingPolicy=idle
|
|
|
|
ExecStartPre=/bin/sh -c "(/bin/systemctl is-active -q mkbackup.target)"
|
|
#ExecStartPre=/bin/touch /run/mkbackup-%i/systemd.lock
|
|
ExecStart=/usr/local/bin/mkbackup -V -v -t %i create SNP
|
|
#ExecStopPost=-/bin/rm /run/mkbackup-%i/systemd.lock
|
|
|
|
KillMode=mixed
|
|
|
|
[Install]
|
|
WantedBy=timer-%i.target
|
|
DefaultInstance=mkbackup@manually.service
|