Add new systemd units (supporting custom paths)
This commit is contained in:
parent
fcb3e0ce5d
commit
89cb215f41
4 changed files with 18 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -7,3 +7,4 @@ install:
|
||||||
install -m755 mlmmj-ldap-sync $(DESTDIR)$(PREFIX)/bin/mlmmj-ldap-sync
|
install -m755 mlmmj-ldap-sync $(DESTDIR)$(PREFIX)/bin/mlmmj-ldap-sync
|
||||||
install -m644 conf.example.toml /etc/mlmmj-ldap-sync.toml
|
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
|
||||||
|
install -m644 mlmmj-ldap-sync@.service mlmmj-ldap-sync@.timer /lib/systemd/system
|
||||||
|
|
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -1,7 +1,7 @@
|
||||||
mlmmj-ldap-sync (0.5) unstable; urgency=medium
|
mlmmj-ldap-sync (0.5) unstable; urgency=medium
|
||||||
|
|
||||||
* Rename package from unipoly-mlmmj-ldap-sync to mlmmj-ldap-sync.
|
* 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
|
-- Timothée Floure <timothee.floure@epfl.ch> Wed, 30 Oct 2019 12:20:01 +0100
|
||||||
|
|
||||||
|
|
7
mlmmj-ldap-sync@.service
Normal file
7
mlmmj-ldap-sync@.service
Normal 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
9
mlmmj-ldap-sync@.timer
Normal 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
|
Loading…
Reference in a new issue