summaryrefslogtreecommitdiff
path: root/config/systemd/weather-logger-receiver.service
blob: d771e59390b55ef5f1c7a8c7efe25488ab4574f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[Unit]
Description=weather-logger-receiver
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=weather-logger
Group=weather-logger
Environment=PYTHONUNBUFFERED=1
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=weather-logger-receiver
PIDFile=/run/weather_logger/receiver.pid
ExecStart=/usr/local/src/weather_logger/weather-logger-receiver /etc/weather-logger-receiver.yaml
ExecStartPre=rm -f /run/weather_logger/receiver.pid
ExecStopPost=rm -f /run/weather_logger/receiver.pid

[Install]
WantedBy=multi-user.target