@slashd I don't think we need anything special for systemd in the debian/{control,rules} files, since we're not shipping full systemd support with this. The slapd service is still handled by systemd-sysv-generator(8), so there's no service units that we need to include or activate in dh_systemd rules.
To make sure things are working fine I went ahead and tested a package upgrade with this debdiff:
ubuntu@disco:~$ dpkg -l | grep slapd
ii slapd 2.4.47+dfsg-3ubuntu1 amd64 OpenLDAP server (slapd)
@slashd I don't think we need anything special for systemd in the debian/ {control, rules} files, since we're not shipping full systemd support with this. The slapd service is still handled by systemd- sysv-generator( 8), so there's no service units that we need to include or activate in dh_systemd rules.
To make sure things are working fine I went ahead and tested a package upgrade with this debdiff:
ubuntu@disco:~$ dpkg -l | grep slapd dfsg-3ubuntu1 amd64 OpenLDAP server (slapd)
ii slapd 2.4.47+
ubuntu@disco:~$ sudo apt-get --only-upgrade install slapd
ubuntu@disco:~$ dpkg -l | grep slapd dfsg-3ubuntu2 amd64 OpenLDAP server (slapd)
ii slapd 2.4.47+
ubuntu@disco:~$ systemctl cat slapd generator. late/slapd. service sysv-generator
# /run/systemd/
# Automatically generated by systemd-
[Unit] man:systemd- sysv-generator( 8) /etc/init. d/slapd multi-user. target multi-user. target multi-user. target graphical. target fs.target online. target online. target
Documentation=
SourcePath=
Description=LSB: OpenLDAP standalone server (Lightweight Directory Access Protocol)
Before=
Before=
Before=
Before=
After=remote-
After=network-
Wants=network-
[Service] /etc/init. d/slapd start /etc/init. d/slapd stop
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
SuccessExitStatus=5 6
ExecStart=
ExecStop=
# /usr/lib/ systemd/ system/ slapd.service. d/slapd- remain- after-exit. conf
[Service]
Type=forking
RemainAfterExit=no
Thanks!