About Me

My photo
I know the last digit of PI

Sunday, December 06, 2015

Apache Directory (DS) systemd.service

Place following file into /usr/lib/systemd/system/apacheds.service
# Systemd unit file for ApacheDS instances.

[Unit]
Description=Apache DS LDAP server
After=syslog.target network.target

[Service]
Type=forking
ExecStart=/opt/apacheds-2.0.0_M20/bin/apacheds start default
ExecStop=/opt/apacheds-2.0.0_M20/bin/apacheds stop default
SuccessExitStatus=143
User=apacheds
Group=apacheds

[Install]
WantedBy=multi-user.target
Then execute:
systemctl enable apacheds
systemctl start apacheds

No comments: