ansible-workadventure icon indicating copy to clipboard operation
ansible-workadventure copied to clipboard

systemd to make this WA installation reboot-persistent

Open ka7 opened this issue 4 years ago • 0 comments

(debian11-based installation, ymmv) just dropping it here, might be useful for someone. ( inspired by https://gist.github.com/r0l1/4039684a76c508aa097a89ae5d752ca4 )

---&<---------------------------------- file = /etc/systemd/system/workadventure-docker-compose.service

[Unit] Description=workadventure - Docker Compose container starter After=docker.service network-online.target Requires=docker.service network-online.target

[Service] WorkingDirectory=/opt/workadventure/contrib/docker Type=oneshot RemainAfterExit=yes

ExecStartPre=/usr/local/bin/docker-compose pull --quiet --parallel ExecStart=/usr/local/bin/docker-compose up -d

ExecStop=/usr/local/bin/docker-compose down

ExecReload=/usr/local/bin/docker-compose pull --quiet --parallel ExecReload=/usr/local/bin/docker-compose up -d

[Install] WantedBy=multi-user.target

ka7 avatar Oct 07 '21 17:10 ka7