diff --git a/debian/shadowsocks.default b/debian/shadowsocks.default index e8492e5f..5b60264b 100644 --- a/debian/shadowsocks.default +++ b/debian/shadowsocks.default @@ -12,6 +12,9 @@ START=yes # Configuration file CONFFILE="/etc/shadowsocks/config.json" +# Extra command line arguments +DAEMON_ARGS="" + # User and group to run the server as USER=root GROUP=root diff --git a/debian/shadowsocks.init b/debian/shadowsocks.init index eceaeecf..ca5e5350 100644 --- a/debian/shadowsocks.init +++ b/debian/shadowsocks.init @@ -56,7 +56,7 @@ do_start() start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON -- \ - -c "$CONFFILE" -f $PIDFILE \ + -c "$CONFFILE" -f $PIDFILE $DAEMON_ARGS \ || return 2 }