ansible.flexlm/templates/etc/systemd/system/flexlm.service.j2

17 lines
483 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description={{ item.description | d("flexlm Licence Manager for " + item.name) }}
After=network.target
[Service]
Type=simple
User={{ flexlm__user_name }}
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") }}
SuccessExitStatus=15
Restart=always
RestartSec={{ item.timewait | d(60) | int }}
[Install]
WantedBy=multi-user.target