diff options
Diffstat (limited to 'misc/proxyper/files/proxyper.sh')
-rw-r--r-- | misc/proxyper/files/proxyper.sh | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/misc/proxyper/files/proxyper.sh b/misc/proxyper/files/proxyper.sh index b070a967299f..816115539be3 100644 --- a/misc/proxyper/files/proxyper.sh +++ b/misc/proxyper/files/proxyper.sh @@ -2,5 +2,18 @@ dir="CHANGETHIS" -echo -n " proxyper" -su -m nobody -c "$dir/proxyper" 2>/dev/null >/dev/null & +case "$1" in +start) + echo -n " proxyper" + su -m nobody -c "$dir/proxyper" 2>/dev/null >/dev/null & + ;; +stop) + killall proxyper && echo -n " proxyper" + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |