2020-02-28 01:25:33 +00:00
|
|
|
# samourai dojo service
|
|
|
|
# /etc/systemd/system/dojo.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=Dojo
|
2020-03-01 20:53:50 +00:00
|
|
|
After=network.target mynode.service docker_images.service
|
2020-02-28 01:25:33 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
RemainAfterExit=yes
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2021-03-14 06:05:39 +00:00
|
|
|
ExecStartPre=/usr/bin/is_mainnet.sh
|
2020-03-01 20:53:50 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
|
|
|
ExecStartPre=/usr/bin/wait_on_docker_image_install.sh
|
2021-01-23 04:55:44 +00:00
|
|
|
WorkingDirectory=/mnt/hdd/mynode/dojo/docker/my-dojo
|
|
|
|
ExecStart=/mnt/hdd/mynode/dojo/docker/my-dojo/dojo.sh start
|
|
|
|
ExecStop=/mnt/hdd/mynode/dojo/docker/my-dojo/dojo.sh stop
|
2020-02-28 01:25:33 +00:00
|
|
|
User=root
|
|
|
|
Group=root
|
2020-07-17 23:10:23 +00:00
|
|
|
KillMode=control-group
|
2021-02-13 06:07:49 +00:00
|
|
|
TimeoutSec=180
|
2020-02-28 01:25:33 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|