summaryrefslogtreecommitdiff
path: root/config/systemd/weather-logger-receiver.service
blob: f56c915f57c40424f4e236011c3cee7f5ff5b4a4 (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=pks
Group=pks
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 Berlin
ExecStartPre=rm -f /run/weather_logger/receiver.pid
ExecStopPost=rm -f /run/weather_logger/receiver.pid

[Install]
WantedBy=multi-user.target