Added systemd generators for tellus

This commit is contained in:
PD0ZRY Rudy 2017-03-11 22:33:00 +01:00
parent fea8c89343
commit 2cb0dd36d3
4 changed files with 57 additions and 3 deletions

View file

@ -0,0 +1,14 @@
[Unit]
Description=TellusAgent for %i
PartOf=tellusagent.service
ReloadPropagatedFrom=tellusagent.service
[Service]
Type=forking
EnvironmentFile=/opt/TellusAgent/%i.conf
ExecStart=/opt/TellusAgent/tellusagent --connect-port ${CONNECT_PORT} --control-port ${CONTROL_PORT} --media-port ${MEDIA_PORT} --server-address ${SERVER_ADDRESS} --service-mode ${SERVICE_MODE}
ExecReload=/bin/kill -HUP $MAINPID
WorkingDirectory=/opt/TellusAgent/
[Install]
WantedBy=multi-user.target