]> git.parisson.com Git - telecaster-server.git/commitdiff
use systemctl to start / stop dev
authorGuillaume Pellerin <pellerin@parisson.com>
Wed, 29 Oct 2025 11:26:47 +0000 (12:26 +0100)
committerGuillaume Pellerin <pellerin@parisson.com>
Wed, 29 Oct 2025 11:27:22 +0000 (12:27 +0100)
etc/cron.d/telecaster

index 5250a33d0c9f17f8d409de2939ad9049781527c4..0b901af692312cbb1de319236d64ddecb30f4a53 100644 (file)
@@ -1,8 +1,10 @@
-59 23 * * * root /etc/init.d/telecaster stop
-30 7  * * * root /etc/init.d/telecaster start
+59 23 * * * root  systemctl stop telecaster.service
+30 7  * * * root  systemctl start telecaster.service; sleep 10;  systemctl restart telecaster.service
+#30 13 * * * root  systemctl start telecaster.service; sleep 10;  systemctl restart telecaster.service
 
-0  7 * * * root python /srv/telecaster/telecaster-server/bin/cleaning/rm_date_days.py 8 /home/telecaster/monitor/ >> /var/log/telecaster/cleanup.log
-15 7 * * * root python /srv/telecaster/telecaster-server/bin/cleaning/rm_date_days.py 8 /home/telecaster/archives/ >> /var/log/telecaster/cleanup.log
+
+0  7 * * * root python /srv/telecaster/telecaster-server/bin/cleaning/rm_date_days.py 5 /home/telecaster/monitor/ >> /var/log/telecaster/cleanup.log
+15 7 * * * root python /srv/telecaster/telecaster-server/bin/cleaning/rm_date_days.py 5 /home/telecaster/archives/ >> /var/log/telecaster/cleanup.log
 
 0 */3 * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py teleforma-import-conferences Pre-Barreau /var/log/telecaster/import.log
 30  * * * * telecaster /srv/telecaster/instance/env/bin/python /srv/telecaster/instance/manage.py telecaster-rsync-archives