... | ... |
@@ -0,0 +1,8 @@ |
1 |
+[Unit] |
|
2 |
+Description=synthèse des actions |
|
3 |
+ |
|
4 |
+[Service] |
|
5 |
+Type=oneshot |
|
6 |
+ExecStart=/bin/su - action -c './synthesis > synthesis.html' |
|
7 |
+ExecStart=/bin/chown www-data /home/action/synthesis.html |
|
8 |
+ExecStart=/bin/mv /home/action/synthesis.html /var/www/action |
... | ... |
@@ -0,0 +1,9 @@ |
1 |
+[Unit] |
|
2 |
+Description=synthèse des actions |
|
3 |
+ |
|
4 |
+[Timer] |
|
5 |
+OnCalendar=*-*-* *:0/10:00 |
|
6 |
+Persistent=true |
|
7 |
+ |
|
8 |
+[Install] |
|
9 |
+WantedBy=timers.target |