Showing 12 changed files with 94 additions and 5 deletions
+7
etc/systemd/system/analyse-vote-AN.service
... ...
@@ -0,0 +1,7 @@
1
+[Unit]
2
+Description=Met à jour la BDD pour l'analyse des votes à l'assemblée nationale
3
+
4
+[Service]
5
+Type=oneshot
6
+User=seb
7
+ExecStart=/home/seb/scripts/analyse-votes-AN --db-update-only --database /home/seb/scripts/analyse-votes-AN.db --progrès-update 1000
+10
etc/systemd/system/analyse-vote-AN.timer
... ...
@@ -0,0 +1,10 @@
1
+[Unit]
2
+Description=Met à jour la BDD pour l'analyse des votes à l'assemblée nationale
3
+
4
+[Timer]
5
+OnCalendar=*-*-* 2,14,20:30:00
6
+RandomizedDelaySec=600
7
+Persistent=true
8
+
9
+[Install]
10
+WantedBy=timers.target
+1 -2
etc/systemd/system/backup.timer
... ...
@@ -1,9 +1,8 @@
1
-
2 1
 [Unit]
3 2
 Description=Backup section
4 3
 
5 4
 [Timer]
6
-OnCalendar=*-*-* 4:00:00
5
+OnCalendar=*-*-* 3:30:00
7 6
 Persistent=true
8 7
 
9 8
 [Install]
+6
etc/systemd/system/backupdata.service
... ...
@@ -0,0 +1,6 @@
1
+[Unit]
2
+Description=Backup section (data, apps)
3
+
4
+[Service]
5
+Type=oneshot
6
+ExecStart=/usr/bin/lftp -u pcfparis12_cloud --env-password ftp.lautre.net -e "mirror --reverse --verbose --delete --delete-first --exclude-glob=*.log* --exclude=appdata_oc81c4ffdee9 --exclude=updater-oc81c4ffdee9 /var/www/nextcloud/data /data; mirror --reverse --verbose --delete --delete-first /var/www/nextcloud/apps /apps; quit"
+9
etc/systemd/system/backupdata.timer
... ...
@@ -0,0 +1,9 @@
1
+[Unit]
2
+Description=Backup section (data, apps)
3
+
4
+[Timer]
5
+OnCalendar=*-*-* 2:30:00
6
+Persistent=true
7
+
8
+[Install]
9
+WantedBy=timers.target
+16
etc/systemd/system/imapfilter@.service
... ...
@@ -0,0 +1,16 @@
1
+[Unit]
2
+Description=filtre et classe les mails
3
+After=network.target spamassassin.service
4
+StartLimitInterval=200
5
+StartLimitBurst=3
6
+
7
+[Service]
8
+User=imapfilter
9
+Environment=LANG=fr_FR.UTF-8 IMAPACCOUNT=%i
10
+ExecStart=/usr/bin/imapfilter
11
+RestartForceExitStatus=2
12
+RestartSec=60
13
+KillMode=process
14
+
15
+[Install]
16
+WantedBy=multi-user.target
+8 -3
etc/systemd/system/iptables.service
... ...
@@ -1,10 +1,15 @@
1 1
 [Unit]
2
-Description=Manage firewall stop/start
3
-#After=fail2ban.service
2
+Description=Mise en place du parefeu
3
+DefaultDependencies=no
4
+After=systemd-sysctl.service
5
+Before=sysinit.target
4 6
 
5 7
 [Service]
6
-ExecStart=/usr/bin/awk '!/^\s*(#.*|$)/{print $0; system("/sbin/iptables " $0)}' /root/iptables.rules
8
+Type=oneshot
9
+ExecStart=/usr/bin/awk '!/^\s*(#.*|$)/{system("/sbin/iptables " $0)}' /root/iptables.rules
10
+ExecReload=/usr/bin/awk '!/^\s*(#.*|$)/{system("/sbin/iptables " $0)}' /root/iptables.rules
7 11
 ExecStop=/usr/bin/awk '!/^\s*(#.*|$)/{system("/sbin/iptables " $0)}' /root/iptables.norules
12
+RemainAfterExit=yes
8 13
 
9 14
 [Install]
10 15
 WantedBy=multi-user.target
+12
etc/systemd/system/missed-calls.service
... ...
@@ -0,0 +1,12 @@
1
+[Unit]
2
+Description=Réponse aux appels manqués sur le fixe de la section
3
+
4
+[Service]
5
+Type=simple
6
+User=sms
7
+ExecStart=/home/sms/missed-calls
8
+Restart=on-failure
9
+RestartSec=5
10
+
11
+[Install]
12
+WantedBy=multi-user.target
+8
etc/systemd/system/monitoring.timer
... ...
@@ -0,0 +1,8 @@
1
+[Unit]
2
+Description=Lance la supervision
3
+
4
+[Timer]
5
+OnCalendar=hourly
6
+
7
+[Install]
8
+WantedBy=timers.target
+7
etc/systemd/system/smsbot-monitoring.service
... ...
@@ -0,0 +1,7 @@
1
+[Unit]
2
+Description=Lance la supervision SMSBOT
3
+
4
+[Service]
5
+Type=oneshot
6
+User=sms
7
+ExecStart=/home/sms/bot.monitoring
+8
etc/systemd/system/smsbot-monitoring.timer
... ...
@@ -0,0 +1,8 @@
1
+[Unit]
2
+Description=Lance la supervision SMSBOT
3
+
4
+[Timer]
5
+OnCalendar=*:30
6
+
7
+[Install]
8
+WantedBy=timers.target
+2
etc/systemd/system/ssh.service.d/override.conf
... ...
@@ -0,0 +1,2 @@
1
+[Unit]
2
+After=dhcpcd.service