xmr-btc-swap/docs/setup/asb/systemd/asb-restart.service
2021-03-09 17:20:58 +11:00

14 lines
378 B
Desktop File

[Unit]
Description=Restart ASB service
After=watch-asb-binary-change.path
OnFailure=unit-status-email@%n.service
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart start-asb.service
# notify upon restart to know that the service was restarted
ExecStartPost=/usr/bin/bash -c '/usr/local/bin/systemd-email.sh daniel@coblox.tech %n'
[Install]
WantedBy=multi-user.target