[Unit] Description=addrkit multi-city address resolution service Documentation=file:///opt/addrkit/README.md After=network-online.target Wants=network-online.target [Service] Type=simple User=lexicom Group=lexicom WorkingDirectory=/opt/addrkit # Environment carries the ${VAR} secrets referenced by config.json. EnvironmentFile=-/etc/addrkit/env ExecStart=/opt/addrkit/bin/addrkitd -config /opt/addrkit/config.json Restart=always RestartSec=5 # Defence in depth: the service only reads its own directory. NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true ReadOnlyPaths=/opt/addrkit StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target