add auto start option
This commit is contained in:
+5
-5
@@ -164,6 +164,11 @@
|
||||
|
||||
console.log = function() {};
|
||||
|
||||
var pid = ""+process.pid; // need to turn into a string
|
||||
fs.writeFile('/data/data/com.github.shadowsocks/shadowsocks.pid', pid, function (err) {
|
||||
// Ignore
|
||||
});
|
||||
|
||||
console.log("calculating ciphers");
|
||||
|
||||
tables = getTable(KEY);
|
||||
@@ -332,11 +337,6 @@
|
||||
});
|
||||
});
|
||||
|
||||
var pid = ""+process.pid; // need to turn into a string
|
||||
fs.writeFile('/data/data/com.github.shadowsocks/shadowsocks.pid', pid, function (err) {
|
||||
// Ignore
|
||||
});
|
||||
|
||||
server.listen(PORT, function() {
|
||||
return console.log("server listening at port " + PORT);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user