Setup License Server With Systemctl in Redhat7

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Create a shell script which starts the license server
#
% cat /path/to/eda/script/snpslmd.sh
admin=eda
su $admin -c "/path/to/lmgrd -l $logfile -c $licfile"

#
# Create systemd service file
#
% cat /etc/systemd/system/snpslmd.service
[Unit]
Description=Synopsys License Server Daemon

[Service]
Type=simple
RemainAfterExit=yes
KillMode=process
ExecStart=/bin/sh -c "/path/to/eda/script/snpslmd.sh"

[Install]
WantedBy=multi-user.target

#
# Startup license server
#
% sudo systemctl daemon-reload
% sudo systemctl start snpslmd.service

#
# Enable license server onboot
#
% sudo systemctl enable snpslmd.service

#
# Check the status of the license server
#
% sudo systemctl status snpslmd.service
% ps aux | grep lmgrd | grep snpslmd
% lmstat

Unresolved issue:
Unable to stop license server by systemctl stop snpslmd.service