[Unit]
Description=Jmeter server

[Service]
Type=simple
User={{ jmeter_user }}
Group={{ jmeter_user }}
Environment=JAVA_HOME=/usr/lib/jvm/jre-17
ExecStart={{ jmeter_root_dir }}/app/bin/jmeter-server -Dserver.rmi.localport={{ jmeter_port }} -Dserver.rmi.ssl.disable=true -Dserver_port={{ jmeter_port }}
PrivateTmp=yes
PrivateDevices=yes
ProtectSystem=full
ProtectHome=yes
NoNewPrivileges=yes
SyslogIdentifier=jmeter-server
Restart=on-failure
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target
