Systemd service unit for OpManager

Systemd service unit for OpManager

Hi,
this is the systemd service unit that we're using with OpManager. It would be nice if ManageEngine included a startup/shutdown script with systemd like we're in 2016 (maybe also with some least privilege - who needs to exec as root?!)

Anyway - this goes in /etc/systemd/system/opmanager.service

  1. [Unit]
    Description=OpManager
    After=syslog.target network.target

    [Service]
    Type=simple
    User=root
    WorkingDirectory=/opt/ManageEngine/OpManager/bin
    ExecStart=/opt/ManageEngine/OpManager/bin/StartOpManagerServer.sh
    ExecStop=/opt/ManageEngine/OpManager/bin/shutdown.sh
    KillMode=control-group
    KillSignal=SIGINT
    TimeoutSec=300

    [Install]
    WantedBy=multi-user.target

Adjust your WorkingDirectory and ExecStart/ExecStop scripts with the actual paths you used in the install procedure.

Force systemd to reload the unit files with systemctl daemon-reload and enable the service at boot  with systemctl enable opmanager.service

If you don't want to reboot (you really shouldn't) start OpManager with systemctl start opmanager.service

systemctl status opmanager.service will show the logs for the services, or you can use journalctl -u opmanager.service

Tested under debian jessie 8.5, should work in other systemd distros. Drop me a line here if you need anything.


Marco

              New to ADManager Plus?

                New to ADSelfService Plus?