Ajout des fonctions de création auto d'un bateau avec timer toutes les 5min
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Ship2net - génération des relais Traefik du Live distant (un par bateau)
|
||||
After=network-online.target docker.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=koriolan
|
||||
Group=koriolan
|
||||
ExecStart=/usr/bin/php /var/www/generer_relais_live.php
|
||||
Nice=10
|
||||
TimeoutStartSec=5min
|
||||
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Ship2net - relais du Live distant toutes les 5 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=1min
|
||||
OnCalendar=*:0/5
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user