Bug#758992: very first draft service files: slapd.service, krb5-kdc.service
Andreas B. Mundt
andi at debian.org
Sun Aug 24 18:09:26 BST 2014
X-Debbugs-CC: pkg-systemd-maintainers at lists.alioth.debian.org
Hi,
I did some experiments with slapd.service and krb5-kdc.service files.
Note that this is my very first attempt working with systemd, so don't
expect much. However, perhaps the following "works for me now"-result
is a useful starting point when implementing a thorough solution:
root at mainserver:~# cat /etc/systemd/system/slapd.service
[Unit]
Description=OpenLDAP standalone server (Lightweight Directory Access Protocol)
After=syslog.target
Wants=remote-fs.target
[Service]
Type=forking
PIDFile=/var/run/slapd/slapd.pid
EnvironmentFile=-/etc/default/slapd
ExecStartPre=-/bin/mkdir /var/run/slapd
ExecStartPre=-/bin/chown ${SLAPD_USER}:${SLAPD_GROUP} /var/run/slapd
ExecStart=/usr/sbin/slapd -u ${SLAPD_USER} -g ${SLAPD_GROUP} -h ${SLAPD_SERVICES} $SLAPD_OPTIONS
[Install]
WantedBy=multi-user.target
root at mainserver:~# cat /etc/systemd/system/krb5-kdc.service
[Unit]
Description=MIT Kerberos KDC
Requires=slapd.service
After=slapd.service
[Service]
Type=forking
EnvironmentFile=-/etc/default/krb5-kdc
ExecStart=/usr/sbin/krb5kdc
[Install]
WantedBy=multi-user.target
Best regards,
Andi
More information about the Pkg-systemd-maintainers
mailing list