Skip to content

Server as a Service

Linux

For RHEL7+, Ubuntu 16.04+, and other modern Linux distributions, the systemd service manager is used.

Install Service

Values to update

Remember to change the references to ##ESMHOME## below to point to real install path (eg. /opt/esm/esm-server) and to change the reference to ##ESMUSER## below to be the user with which you installed the Server component.

  1. As root or using sudo, create a file called esm-server.service in /etc/systemd/system with the below contents modifying:
    [Unit]
    Description=SAS Enterprise Session Monitor Server
    After=network.target
    
    [Service]
    User=##ESMUSER##
    ExecStart=##ESMHOME##/bin/esm-server.sh start
    ExecStop=##ESMHOME##/bin/esm-server.sh stop
    Type=forking
    Restart=on-failure
    
    [Install]
    WantedBy=multi-user.target
    
  2. As root or using sudo, run systemctl daemon-reload to pickup the newly created service.

Enable Startup at Boot

  1. As root or using sudo, run systemctl enable esm-server

Service Commands

Status

  1. As root or using sudo, run systemctl status esm-server

Start

  1. As root or using sudo, run systemctl start esm-server

Stop

  1. As root or using sudo, run systemctl stop esm-server

Restart

It is possible to issue sequential stop and start command with a single "restart" command.

  1. As root or using sudo, run systemctl restart esm-server

Windows

The Enterprise Session Monitor Server is automatically installed as Windows Service via the installation Wizard.

The Enterprise Session Monitor Server Service can be controlled and configured via the Windows Services application.


Last update: April 24, 2023
Created: April 24, 2023