admin:infrastructure:sympa
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | Prochaine révisionLes deux révisions suivantes | ||
admin:infrastructure:sympa [2018/07/17 17:55] – [guest -> sympa] fpoulain | admin:infrastructure:sympa [2021/12/05 12:20] – [Sur la machine relais] fpoulain | ||
---|---|---|---|
Ligne 150: | Ligne 150: | ||
#!/bin/bash | #!/bin/bash | ||
cd / | cd / | ||
+ | |||
+ | export GIT_AUTHOR_EMAIL=sympa@chapril.org | ||
+ | export GIT_AUTHOR_NAME=Sympa | ||
+ | |||
git add transports/ | git add transports/ | ||
git commit -m 'MaJ des alias des listes' | git commit -m 'MaJ des alias des listes' | ||
</ | </ | ||
- | ainsi que la directive incron suivante | + | ainsi que les units systemd suivantes |
- | <code conf /etc/incron.d/sympa > | + | <code conf /etc/systemd/ |
- | / | + | [Unit] |
+ | Description=Wait for new sympa transports | ||
+ | |||
+ | [Path] | ||
+ | PathChanged=/ | ||
+ | Unit=sympa-transports.service | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
</ | </ | ||
- | qu'on va penser à rendre exécutable : | ||
- | chown a+x / | ||
- | Puis on redémarre incron : | + | <code conf // |
- | | + | [Unit] |
+ | Description=Push sympa transports toward postfix | ||
+ | |||
+ | [Service] | ||
+ | Type=simple | ||
+ | ExecStart=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | qu'on va penser à activer : | ||
+ | systemctl enable sympa-transports.path sympa-transports.service | ||
+ | systemctl start sympa-transports.path sympa-transports.service |
admin/infrastructure/sympa.txt · Dernière modification : 2022/01/05 13:56 de fcouchet