[Unit] Description=Wyrs CN geo guard (mainland except Shanghai) After=network.target Wants=network-online.target [Service] Type=simple Environment=GEOIP_CITY_DB=/usr/share/GeoIP/GeoLite2-City.mmdb Environment=WYRS_GEO_LISTEN=127.0.0.1 Environment=WYRS_GEO_PORT=18099 ExecStart=/usr/bin/python3 /opt/wyrs-geo-guard/wyrs_geo_guard.py Restart=always RestartSec=1 User=root [Install] WantedBy=multi-user.target