xmr-btc-swap/docs/setup/asb/systemd/asb-restart.service

14 lines
378 B
SYSTEMD
Raw Normal View History

2021-02-22 20:21:52 +11:00
[Unit]
Description=Restart ASB service
After=watch-asb-binary-change.path
OnFailure=unit-status-email@%n.service
2021-02-22 20:21:52 +11:00
[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'
2021-02-22 20:21:52 +11:00
[Install]
WantedBy=multi-user.target