summaryrefslogtreecommitdiff
path: root/config/systemd/weather-logger-receiver.service
blob: 4496fce3b1c099ef6889b2e3a3fbcbcbde1701e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[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
PermissionsStartOnly=true
ExecStartPre=mkdir -p /run/weather_logger /var/log/weather_logger /usr/local/share/weather_logger
ExecStartPre=rm -f /run/weather_logger/receiver.pid
ExecStartPre=chown -R weather-logger:weather-logger /run/weather_logger /var/log/weather_logger /usr/local/share/weather_logger
ExecStopPost=rm -f /run/weather_logger/receiver.pid
ExecStart=/usr/local/src/weather_logger/weather-logger-receiver /etc/weather-logger-receiver.yaml

[Install]
WantedBy=multi-user.target