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-03-01 20:53:50 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
|
|
|
ExecStartPre=/usr/bin/wait_on_docker_image_install.sh
|
2020-02-28 01:25:33 +00:00
|
|
|
WorkingDirectory=/opt/mynode/dojo/docker/my-dojo
|
|
|
|
ExecStart=/opt/mynode/dojo/docker/my-dojo/dojo.sh start
|
|
|
|
ExecStop=/opt/mynode/dojo/docker/my-dojo/dojo.sh stop
|
|
|
|
User=root
|
|
|
|
Group=root
|
|
|
|
KillMode=process
|
|
|
|
TimeoutSec=420
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|