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.
- 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
- As root or using sudo, run
systemctl daemon-reload
to pickup the newly created service.
Enable Startup at Boot¶
- As root or using sudo, run
systemctl enable esm-server
Service Commands¶
Status¶
- As root or using sudo, run
systemctl status esm-server
Start¶
- As root or using sudo, run
systemctl start esm-server
Stop¶
- 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.
- 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
Created: April 24, 2023