Showing 4 changed files with 31 additions and 0 deletions
+7
etc/systemd/system/action.service
... ...
@@ -0,0 +1,7 @@
1
+[Unit]
2
+Description=Mets à jour les actions de la section
3
+
4
+[Service]
5
+Type=simple
6
+User=action
7
+ExecStart=/home/action/action
+8
etc/systemd/system/action.timer
... ...
@@ -0,0 +1,8 @@
1
+[Unit]
2
+Description=Mets à jour les actions de la section
3
+
4
+[Timer]
5
+OnCalendar=daily
6
+
7
+[Install]
8
+WantedBy=timers.target
+6
etc/systemd/system/backup.service
... ...
@@ -0,0 +1,6 @@
1
+[Unit]
2
+Description=Backup section
3
+
4
+[Service]
5
+Type=oneshot
6
+ExecStart=/root/inject
+10
etc/systemd/system/backup.timer
... ...
@@ -0,0 +1,10 @@
1
+
2
+[Unit]
3
+Description=Backup section
4
+
5
+[Timer]
6
+OnCalendar=*-*-* 4:00:00
7
+Persistent=true
8
+
9
+[Install]
10
+WantedBy=timers.target