Showing 2 changed files with 3 additions and 2 deletions
+2 -1
etc/systemd/system/action.service
... ...
@@ -1,8 +1,9 @@
1 1
 [Unit]
2 2
 Description=Mets à jour les actions de la section
3
+ConditionPathExists=/tmp/sms-action/envoi
3 4
 
4 5
 [Service]
5 6
 Type=simple
6 7
 User=action
7 8
 Environment=PERL5LIB=/home/action/perl5/lib/perl5
8
-ExecStart=/home/action/action
9
+ExecStart=/home/action/action; /bin/rm -f /tmp/sms-action/envoi
+1 -1
etc/systemd/system/action.timer
... ...
@@ -2,7 +2,7 @@
2 2
 Description=Mets à jour les actions de la section
3 3
 
4 4
 [Timer]
5
-OnCalendar=weekly
5
+OnCalendar=hourly
6 6
 
7 7
 [Install]
8 8
 WantedBy=timers.target