X-Debbugs-CC: [email protected]

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@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@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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to