30 lines
732 B
Desktop File
30 lines
732 B
Desktop File
# Systemd service unit for unpoller.
|
|
# This is part of Application Builder.
|
|
# https://github.com/golift/application-builder
|
|
# This file is installed when FORMULA is set to 'service'.
|
|
|
|
[Unit]
|
|
Description=unpoller - Telemetry and Observability for your UniFi Network
|
|
After=network.target
|
|
Requires=network.target
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/unpoller -c /etc/unpoller/up.conf $DAEMON_OPTS
|
|
EnvironmentFile=-/etc/default/unpoller
|
|
EnvironmentFile=-/etc/sysconfig/unpoller
|
|
Restart=always
|
|
RestartSec=10
|
|
StandardOutput=syslog
|
|
StandardError=syslog
|
|
SyslogIdentifier=unpoller
|
|
Type=simple
|
|
WorkingDirectory=/tmp
|
|
|
|
# These should be set correctly for your environment.
|
|
UMask=0002
|
|
User=unpoller
|
|
Group=unpoller
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|