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

28 lines
1.1 KiB
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-05-03 21:11:19 -04:00
ExecStartPre=/opt/mistborn/scripts/wrappers/mistborn_docker.sh wazuh,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-05-03 21:11:19 -04:00
ExecStart=/opt/mistborn/scripts/wrappers/mistborn_docker.sh wazuh,scirius docker-compose -f /opt/mistborn/extra/scirius.yml up --build
2021-05-03 20:47:08 -04:00
# Suricata
2021-05-03 21:11:19 -04:00
ExecStartPost=/opt/mistborn/scripts/wrappers/mistborn_docker.sh wazuh,scirius /opt/mistborn/scripts/services/scirius/suricata_start.sh
2021-05-03 20:47:08 -04:00
2021-03-01 19:51:55 -05:00
# Stop container when unit is stopped
2021-05-03 21:11:19 -04:00
ExecStop=/opt/mistborn/scripts/wrappers/mistborn_docker.sh wazuh,scirius docker-compose -f /opt/mistborn/extra/scirius.yml down
2021-03-01 19:51:55 -05:00
# Post stop
2021-05-03 21:11:19 -04:00
ExecStopPost=-/opt/mistborn/scripts/wrappers/mistborn_docker.sh wazuh,scirius /opt/mistborn/scripts/services/scirius/suricata_stop.sh
2021-03-01 19:51:55 -05:00
[Install]
2021-04-28 19:27:46 -04:00
WantedBy=Mistborn-base.service