{"action":"created","issue":{"url":"https://api.github.com/repos/shadowsocks/openwrt-shadowsocks/issues/81","repository_url":"https://api.github.com/repos/shadowsocks/openwrt-shadowsocks","labels_url":"https://api.github.com/repos/shadowsocks/openwrt-shadowsocks/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/shadowsocks/openwrt-shadowsocks/issues/81/comments","events_url":"https://api.github.com/repos/shadowsocks/openwrt-shadowsocks/issues/81/events","html_url":"https://github.com/shadowsocks/openwrt-shadowsocks/issues/81","id":85726967,"number":81,"title":"ss-tunnel在openwrt上无法自启动","user":{"login":"lulooper","id":12773223,"avatar_url":"https://avatars.githubusercontent.com/u/12773223?v=3","gravatar_id":"","url":"https://api.github.com/users/lulooper","html_url":"https://github.com/lulooper","followers_url":"https://api.github.com/users/lulooper/followers","following_url":"https://api.github.com/users/lulooper/following{/other_user}","gists_url":"https://api.github.com/users/lulooper/gists{/gist_id}","starred_url":"https://api.github.com/users/lulooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lulooper/subscriptions","organizations_url":"https://api.github.com/users/lulooper/orgs","repos_url":"https://api.github.com/users/lulooper/repos","events_url":"https://api.github.com/users/lulooper/events{/privacy}","received_events_url":"https://api.github.com/users/lulooper/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-06T09:22:29Z","updated_at":"2016-04-19T03:26:55Z","closed_at":"2015-06-08T06:26:19Z","body":"shadowsocks-libev版里的ss-tunnel已经添加进自启动，但是无法自启动，ps看不到进程，但是/var/run下有ss-tunnel.pid。手动运行是可以成功的，在rc.local里加入也启动不了，但是多加一句sleep 5就可以启动了。\r\nroot@OpenWrt:~# cat /etc/init.d/shadowsocks \r\n#!/bin/sh /etc/rc.common\r\n\r\nSTART=95\r\n\r\nSERVICE_USE_PID=1\r\nSERVICE_WRITE_PID=1\r\nSERVICE_DAEMONIZE=1\r\n\r\nCONFIG=/etc/shadowsocks.json\r\n\r\nstart() {\r\n        #service_start /usr/bin/ss-local -c $CONFIG -b 0.0.0.0\r\n        #service_start /usr/bin/ss-redir -c $CONFIG -b 0.0.0.0\r\n        service_start /usr/bin/ss-tunnel -c $CONFIG -b 0.0.0.0 -l 5353 -L 8.8.8.8:53 -u\r\n}\r\n\r\nstop() {\r\n        #service_stop /usr/bin/ss-local\r\n        #service_stop /usr/bin/ss-redir\r\n        service_stop /usr/bin/ss-tunnel\r\n}\r\nroot@OpenWrt:~#"},"comment":{"url":"https://api.github.com/repos/shadowsocks/openwrt-shadowsocks/issues/comments/211711157","html_url":"https://github.com/shadowsocks/openwrt-shadowsocks/issues/81#issuecomment-211711157","issue_url":"https://api.github.com/repos/shadowsocks/openwrt-shadowsocks/issues/81","id":211711157,"user":{"login":"aa65535","id":5417786,"avatar_url":"https://avatars.githubusercontent.com/u/5417786?v=3","gravatar_id":"","url":"https://api.github.com/users/aa65535","html_url":"https://github.com/aa65535","followers_url":"https://api.github.com/users/aa65535/followers","following_url":"https://api.github.com/users/aa65535/following{/other_user}","gists_url":"https://api.github.com/users/aa65535/gists{/gist_id}","starred_url":"https://api.github.com/users/aa65535/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aa65535/subscriptions","organizations_url":"https://api.github.com/users/aa65535/orgs","repos_url":"https://api.github.com/users/aa65535/repos","events_url":"https://api.github.com/users/aa65535/events{/privacy}","received_events_url":"https://api.github.com/users/aa65535/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T03:26:54Z","updated_at":"2016-04-19T03:26:54Z","body":"service_stop 不行的话就用 `killall -q -9 ss-redir` 吧。"}}