Add new systemd units (supporting custom paths)

This commit is contained in:
Timothée Floure 2019-10-30 15:51:43 +01:00
parent fcb3e0ce5d
commit 89cb215f41
4 changed files with 18 additions and 1 deletions

View File

@ -7,3 +7,4 @@ install:
install -m755 mlmmj-ldap-sync $(DESTDIR)$(PREFIX)/bin/mlmmj-ldap-sync
install -m644 conf.example.toml /etc/mlmmj-ldap-sync.toml
install -m644 mlmmj-ldap-sync.service mlmmj-ldap-sync.timer /lib/systemd/system
install -m644 mlmmj-ldap-sync@.service mlmmj-ldap-sync@.timer /lib/systemd/system

2
debian/changelog vendored
View File

@ -1,7 +1,7 @@
mlmmj-ldap-sync (0.5) unstable; urgency=medium
* Rename package from unipoly-mlmmj-ldap-sync to mlmmj-ldap-sync.
* Allow multiple configurations.
* Support custom path for the configuration file.
-- Timothée Floure <timothee.floure@epfl.ch> Wed, 30 Oct 2019 12:20:01 +0100

7
mlmmj-ldap-sync@.service Normal file
View File

@ -0,0 +1,7 @@
[Unit]
Description=Synchronize mlmmj mailing lists with LDAP groups
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/mlmmj-ldap-sync /etc/mlmmj-ldap-sync-%i.toml

9
mlmmj-ldap-sync@.timer Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=Synchronize mlmmj mailing lists with LDAP groups once a day
[Timer]
OnCalendar=*-*-* 3:00:00
Persistent=true
[Install]
WantedBy=timers.target