Files

14 lines
370 B
Desktop File
Raw Permalink Normal View History

[Unit]
Description=Re-apply prx proxy routing
Documentation=man:prx(1)
After=network-online.target
Wants=network-online.target
# Only run when prx was enabled (state snapshot exists).
ConditionPathExists=/run/prx/state.json
[Service]
Type=oneshot
# `prx on` is idempotent: it re-detects the gateway and refreshes the rules.
ExecStart=/usr/bin/prx on
RemainAfterExit=no