2021-03-01 19:51:55 -05:00
|
|
|
[Unit]
|
2021-03-01 20:02:52 -05:00
|
|
|
Description=Mistborn Suricata
|
2021-03-01 19:51:55 -05:00
|
|
|
Requires=Mistborn-base.service
|
|
|
|
|
After=Mistborn-base.service
|
|
|
|
|
PartOf=Mistborn-base.service
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Restart=always
|
|
|
|
|
User=root
|
|
|
|
|
Group=docker
|
|
|
|
|
PermissionsStartOnly=true
|
|
|
|
|
# Shutdown container (if running) when unit is stopped
|
2021-03-03 13:58:22 -05:00
|
|
|
ExecStartPre=/opt/mistborn/scripts/wrappers/mistborn_docker.sh suricata docker-compose -f /opt/mistborn/extra/scirius.yml down
|
2021-03-01 19:51:55 -05:00
|
|
|
|
|
|
|
|
# Start container when unit is started
|
2021-03-03 13:58:22 -05:00
|
|
|
ExecStart=/opt/mistborn/scripts/wrappers/mistborn_docker.sh suricata 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-03-03 13:58:22 -05:00
|
|
|
ExecStop=/opt/mistborn/scripts/wrappers/mistborn_docker.sh suricata docker-compose -f /opt/mistborn/extra/scirius.yml down
|
2021-03-01 19:51:55 -05:00
|
|
|
# Post stop
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|