Created
March 29, 2025 06:43
-
-
Save Zxce3/44c80a199a74e2f865c0c7e2e91c2061 to your computer and use it in GitHub Desktop.
Teavpn2 Client Service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=TeaVPN2 Client Service | |
After=network.target | |
[Service] | |
Type=simple | |
User=root | |
WorkingDirectory=/home/memet/projek/gnuweeb/teavpn2 | |
ExecStartPre=-/sbin/ip link delete teavpn2-cl-01 | |
ExecStart=/bin/sh -c 'exec ./teavpn2 client -c config/akun.ini' | |
StandardOutput=journal | |
StandardError=journal | |
Restart=on-failure | |
RestartSec=5 | |
StartLimitInterval=200 | |
StartLimitBurst=5 | |
# Capabilities for VPN and scheduling | |
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_SYS_NICE | |
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_SYS_NICE | |
Nice=-20 | |
CPUSchedulingPolicy=fifo | |
CPUSchedulingPriority=55 | |
CPUAffinity=0 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment