22 lines
621 B
Desktop File
22 lines
621 B
Desktop File
[Unit]
|
|
Description=Mistborn OnlyOffice Service
|
|
Requires=Mistborn-base.service
|
|
After=Mistborn-base.service
|
|
|
|
[Service]
|
|
Restart=always
|
|
User=root
|
|
Group=docker
|
|
PermissionsStartOnly=true
|
|
# Shutdown container (if running) when unit is stopped
|
|
ExecStartPre=/usr/local/bin/docker-compose -f /opt/mistborn/extra/onlyoffice.yml down
|
|
|
|
# Start container when unit is started
|
|
ExecStart=/usr/local/bin/docker-compose -f /opt/mistborn/extra/onlyoffice.yml up --build
|
|
# Stop container when unit is stopped
|
|
ExecStop=/usr/local/bin/docker-compose -f /opt/mistborn/extra/onlyoffice.yml down
|
|
# Post stop
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|