Refactor NGS Pulsar role: remove obsolete files and add new task and handler definitions
This commit is contained in:
25
ansible/roles/install_ngs-pulsar/templates/pulsar.systemd.j2
Normal file
25
ansible/roles/install_ngs-pulsar/templates/pulsar.systemd.j2
Normal file
@@ -0,0 +1,25 @@
|
||||
# roles/install_ngs-pulsar/templates/pulsar.service.j2
|
||||
[Unit]
|
||||
Description=NGS-Pulsar
|
||||
ConditionPathExists={{ pulsar_install_path }}/
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory={{ pulsar_install_path }}/
|
||||
ExecStartPre=/bin/mkdir -p /var/log/enginsight
|
||||
ExecStart={{ pulsar_install_path }}/{{ pulsar_binary_name }}
|
||||
ExecStopPost={{ pulsar_install_path }}/{{ pulsar_binary_name }} -clear-shield
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
StartLimitInterval=600
|
||||
StartLimitBurst=5
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
SyslogIdentifier=pulsar-m8
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user