ansible_playbook_audiometer/templates/audiometer.service.j2

18 lines
318 B
Text
Raw Normal View History

2023-02-21 00:49:58 +01:00
{{ ansible_managed | comment }}
[Unit]
2023-02-21 02:11:00 +01:00
Description=create audiometer for {{ inventory_hostname }}
2023-02-21 00:49:58 +01:00
After=network.target
[Service]
Type=simple
Restart=always
User=video
2023-02-21 02:11:00 +01:00
ExecStart=/bin/sh /opt/audiometer.sh
2023-02-21 00:49:58 +01:00
ExecReload=/bin/kill -HUP $MAINPID
2023-02-21 02:11:00 +01:00
StartLimitBurst=2
StartLimitInterval=8
2023-02-21 00:49:58 +01:00
[Install]
WantedBy=multi-user.target