summarylogtreecommitdiffstats
path: root/maestral@.service
blob: d67ef71014e37cf06f6835754abd3769690d91b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description = Maestral daemon for config %i
Documentation = https://github.com/SamSchott/maestral-dropbox/wiki

[Service]
Type = notify
NotifyAccess = exec
ExecStart = /usr/bin/maestral start -f -c %i
ExecStop = /usr/bin/maestral stop -c %i
ExecStopPost=/usr/bin/env bash -c "if [ ${SERVICE_RESULT} != success ];\
then notify-send Maestral 'Daemon failed'; fi"
WatchdogSec = 30s

[Install]
WantedBy = default.target