http://publib.boulder.ibm.com/httpserv/ihsdiag/startstop_questions.html#how-do-i-start-ihs-during-the-linux-boot-process

cd /etc/systemd/system

vim ihs.service

[Unit]
Description=IBM HTTP Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/opt/IBM/HTTPServer/logs/httpd.pid
ExecStart=/opt/IBM/HTTPServer/bin/apachectl start -d /opt/IBM/HTTPServer
ExecStop=/opt/IBM/HTTPServer/bin/apachectl graceful-stop
ExecReload=/opt/IBM/HTTPServer/bin/apachectl graceful
PrivateTmp=true
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target

vim ihsadmin.service

[Unit]
Description=IBM HTTP Administration Server
After=network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/opt/IBM/HTTPServer/logs/admin.pid
ExecStart=/opt/IBM/HTTPServer/bin/adminctl start
ExecStop=/opt/IBM/HTTPServer/bin/adminctl stop
PrivateTmp=true
LimitNOFILE=infinity

[Install]
WantedBy=multi-user.target

 

systemctl enable ihs.service

systemctl start ihs

systemctl stop ihs

 

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.