2018-02-23 15:56:31 +01:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
[Unit]
|
2018-02-27 12:05:11 +01:00
|
|
|
Description={{ item.description | d("flexlm Licence Manager for " + item.name) }}
|
2018-02-23 15:56:31 +01:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2018-02-23 16:25:27 +01:00
|
|
|
User={{ flexlm__user_name }}
|
2018-02-27 12:05:11 +01:00
|
|
|
WorkingDirectory={{ item.bin_path | d("/opt/" + item.name + "/bin") }}
|
|
|
|
ExecStart={{ flexlm__lmgrd_path }} -z -c {{ item.lic_path | d("/opt/" + item.name + "/etc/licence.lic") }}
|
2018-02-23 15:56:31 +01:00
|
|
|
SuccessExitStatus=15
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|