ss/ss-autostart.service

15 lines
259 B
SYSTEMD
Raw Normal View History

2023-07-10 15:35:57 +08:00
[Unit]
Description=Configure transparent proxy
After=network-online.target
[Service]
Type=simple
User=root
RemainAfterExit=true
Environment="SCRIPT=/path/to/ss.py"
ExecStart=/usr/bin/python ${SCRIPT} up
TimeoutStopSec=2
[Install]
WantedBy=multi-user.target