Managing DBB server with systemd
If your DBB server, also known as DBB web application, is installed on a Linux system with systemd, to enable easier system control with systemd, you can add the DBB server to the systemd configurations as follows.
Complete the following steps either as the root user or using sudo.
Create the service file
dbbweb.servicefor the DBB server.The following is an example of a service file. Under the
[Service]section, you need to change theEnvironmentandExecStartparameters to point to yourJAVA_HOMEand theserverexecutable in the dbbserver installation directory.[Unit] Description=DBB Web App Server [Service] Type=forking Environment="JAVA_HOME=/opt/ibm/java-s390x-80" ExecStart=/opt/ibm/dbbserver_v.r.m/wlp/bin/server start dbb ExecStop=/opt/ibm/dbbserver_v.r.m/wlp/bin/server stop dbb [Install] WantedBy=multi-user.targetMake sure that the DBB server file is properly executable.
The following is an example command. Modify the path based on your dbbserver installation directory.
chmod +x /opt/ibm/dbbserver_v.r.m/wlp/bin/serverCopy your
dbbweb.servicefile into the/lib/systemd/system/and/etc/systemd/system/directories.Reload the systemd daemon by using the following command.
systemctl daemon-reloadStart the service by using
dbbweb.service.Provided you set up the files correctly according to the previous steps, you should be able to start the service by using the following command.
systemctl start dbbwebEnable the service
dbbweb.serviceto start automatically after a server restart by using the following command.systemctl enable dbbweb
If you need to take down your DBB server for some reason, you can do so with the following command:
systemctl stop dbbweb