dataset-formation/seed/site-formation/templates/site_update.service

11 lines
268 B
Desktop File

[Unit]
Description=Update site files
After=risotto.target
[Service]
Type=oneshot
ExecStartPre=/usr/bin/timeout 60 bash -c 'while ! 3<> /dev/tcp/%%site_domain_name/3000; do sleep 1; done'
ExecStart=/usr/local/lib/sbin/site_update
[Install]
WantedBy=multi-user.target