Skip to content

Commit

Permalink
run as nobody in freebsd rc script
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Aug 3, 2024
1 parent cb679d0 commit faaa042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/kcptun.freebsd.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# REQUIRE: LOGIN
# KEYWORD: shutdown

# FreeBSD startup script, rename and put this file to
# FreeBSD startup script, rename and put this file to
# /usr/local/etc/rc.d/kcptun
# and, run:
# chmod +x /usr/local/etc/rc.d/kcptun
Expand All @@ -21,6 +21,6 @@ load_rc_config $name # Loads the config file, if relevant.
dir="/home/xtaci" # change this to the directory where kcptun binaries are.
command="/usr/sbin/daemon"
pidfile="/var/run/${name}.pid"
command_args="-c -f -S -P ${pidfile} -r $dir/client_freebsd_amd64 -c $dir/local-ss.json"
command_args="-u nobody -c -f -S -P ${pidfile} -r $dir/client_freebsd_amd64 -c $dir/local-ss.json"

run_rc_command "$1"

0 comments on commit faaa042

Please sign in to comment.