This repository was archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Autostart on Linux
Snawoot edited this page Jun 25, 2021
·
2 revisions
Assuming you have placed windscribe-proxy at path /usr/local/bin/windscribe-proxy
.
Create file with following content in /etc/systemd/system/windscribe-proxy.service
:
[Unit]
Description=Windscribe proxy
Documentation=https://github.com/Snawoot/windscribe-proxy/
After=network.target network-online.target
Requires=network-online.target
[Service]
EnvironmentFile=/etc/default/windscribe-proxy
User=nobody
Group=nogroup
ExecStart=/usr/local/bin/windscribe-proxy $OPTIONS
TimeoutStopSec=5s
LimitNOFILE=1048576
LimitNPROC=512
PrivateTmp=true
ProtectSystem=full
[Install]
WantedBy=default.target
Create file /etc/default/windscribe-proxy
with content like this:
OPTIONS=-location "Germany/Frankfurt" -state-file /var/tmp/wndstate.json
Reload systemd, enable unit autostart and start daemon:
systemctl daemon-reload
systemctl enable windscribe-proxy
systemctl restart windscribe-proxy
Check log output with following command:
journalctl -u windscribe-proxy -n 30
Assuming you have placed windscribe-proxy at path /home/user/bin/windscribe-proxy
.
Create file with following content in /home/user/.config/systemd/user/windscribe-proxy.service
:
[Unit]
Description=Windscribe proxy
Documentation=https://github.com/Snawoot/windscribe-proxy/
[Service]
EnvironmentFile=/home/user/.config/windscribe-proxy
ExecStart=/home/user/bin/windscribe-proxy $OPTIONS
TimeoutStopSec=5s
[Install]
WantedBy=default.target
Create file /home/user/.config/windscribe-proxy
with content like this:
OPTIONS=-location "Germany/Frankfurt" -state-file /var/tmp/wndstate.json
Reload systemd, enable unit autostart and start daemon:
systemctl --user daemon-reload
systemctl --user enable windscribe-proxy
systemctl --user restart windscribe-proxy
Check log output with following command:
journalctl --user -u windscribe-proxy -n 30