mynode/rootfs/standard/etc/systemd/system/dojo.service

26 lines
624 B
SYSTEMD
Raw Normal View History

# samourai dojo service
# /etc/systemd/system/dojo.service
[Unit]
Description=Dojo
After=network.target mynode.service docker_images.service
[Service]
Type=forking
RemainAfterExit=yes
2020-04-23 02:59:37 +00:00
ExecStartPre=/usr/bin/is_not_shutting_down.sh
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
User=root
Group=root
KillMode=control-group
TimeoutSec=900
Restart=always
RestartSec=60
[Install]
WantedBy=multi-user.target