websoft9/apps/roles/role_init/templates/init-apps.service.jinja2
2022-07-11 14:40:24 +08:00

15 lines
310 B
Django/Jinja

[Unit]
Description=Init image powered by Websoft9
After=network.target systemd-networkd-wait-online.service docker.service
[Service]
Type=simple
TimeoutSec=120s
ExecStart=-/bin/bash /credentials/init.sh
ExecStartPost=/bin/systemctl disable init-apps
User=root
Group=root
[Install]
WantedBy=multi-user.target