Browse Source

Fix #1064

pull/1072/head
Max Lv 7 years ago
parent
commit
dc94267fa1
3 changed files with 2 additions and 3 deletions
  1. 2
      debian/shadowsocks-libev.init
  2. 2
      debian/shadowsocks-libev.service
  3. 1
      src/manager.h

2
debian/shadowsocks-libev.init

@ -58,7 +58,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" -a "$USER" -u -f $PIDFILE $DAEMON_ARGS \
-c "$CONFFILE" -u -f $PIDFILE $DAEMON_ARGS \
|| return 2
}

2
debian/shadowsocks-libev.service

@ -18,7 +18,7 @@ Type=simple
EnvironmentFile=/etc/default/shadowsocks-libev
User=nobody
LimitNOFILE=32768
ExecStart=/usr/bin/ss-server -a $USER -c $CONFFILE $DAEMON_ARGS
ExecStart=/usr/bin/ss-server -c $CONFFILE $DAEMON_ARGS
[Install]
WantedBy=multi-user.target

1
src/manager.h

@ -45,7 +45,6 @@ struct manager_ctx {
char *acl;
char *user;
char *plugin;
char *plugin_args;
char *manager_address;
char **hosts;
int host_num;

Loading…
Cancel
Save