Files
cgproxy/cgproxy.sh
2020-04-22 03:04:15 +08:00

12 lines
184 B
Bash

#!/bin/bash
config="/etc/cgproxy.conf"
source $config
# test suid bit
if [ -u "$(which cgattach)" ]; then
cgattach $$ $proxy_cgroup
else
sudo cgattach $$ $proxy_cgroup
fi
$@