https://backstage.forgerock.com/knowledge/kb/book/b73824898#a56766667

cd /etc/systemd/system

vim opendj.service

[Unit]
Description=opendj LDAP Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/opt/opendj/logs/server.pid
ExecStart=/opt/opendj/bin/start-ds --quiet
ExecStop=/opt/opendj/bin/stop-ds --quiet
PrivateTmp=true
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target

systemctl enable opendj.service

systemctl start opendj.service

systemctl stop opendj.service

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.