[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