Files
mistborn/scripts/services/Mistborn-scirius.service
T

24 lines
785 B
Desktop File
Raw Normal View History

2021-03-01 19:51:55 -05:00
[Unit]
2021-04-09 09:40:39 -04:00
Description=Mistborn Scirius Service
2021-03-01 19:51:55 -05:00
Requires=Mistborn-base.service
After=Mistborn-base.service
PartOf=Mistborn-base.service
[Service]
Restart=always
2021-04-07 14:53:00 -04:00
RestartSec=15
2021-03-01 19:51:55 -05:00
User=root
Group=docker
PermissionsStartOnly=true
# Shutdown container (if running) when unit is stopped
2021-04-09 09:40:39 -04:00
ExecStartPre=/opt/mistborn/scripts/wrappers/mistborn_docker.sh scirius docker-compose -f /opt/mistborn/extra/scirius.yml down
2021-03-01 19:51:55 -05:00
# Start container when unit is started
2021-04-09 09:40:39 -04:00
ExecStart=/opt/mistborn/scripts/wrappers/mistborn_docker.sh scirius docker-compose -f /opt/mistborn/extra/scirius.yml up --build
2021-03-01 19:51:55 -05:00
# Stop container when unit is stopped
2021-04-09 09:40:39 -04:00
ExecStop=/opt/mistborn/scripts/wrappers/mistborn_docker.sh scirius docker-compose -f /opt/mistborn/extra/scirius.yml down
2021-03-01 19:51:55 -05:00
# Post stop
[Install]
2021-04-28 19:27:46 -04:00
WantedBy=Mistborn-base.service