BreakWa11
9 years ago
9 changed files with 63 additions and 27 deletions
@ -0,0 +1,27 @@ |
|||
#!/usr/bin/python |
|||
# -*- coding: UTF-8 -*- |
|||
|
|||
config = None |
|||
|
|||
def load_config(): |
|||
global config |
|||
try: |
|||
import userapiconfig |
|||
reload(userapiconfig) |
|||
config = userapiconfig |
|||
return |
|||
except: |
|||
pass |
|||
try: |
|||
import apiconfig |
|||
reload(apiconfig) |
|||
config = apiconfig |
|||
except: |
|||
pass |
|||
|
|||
def get_config(): |
|||
global config |
|||
return config |
|||
|
|||
load_config() |
|||
|
@ -0,0 +1,6 @@ |
|||
#!/bin/bash |
|||
cd `dirname $0` |
|||
eval $(ps -ef | grep "[0-9] python server\\.py m" | awk '{print "kill "$2}') |
|||
ulimit -n 512000 |
|||
nohup python server.py m>> ssserver.log 2>&1 & |
|||
|
@ -0,0 +1,6 @@ |
|||
#!/bin/bash |
|||
cd `dirname $0` |
|||
eval $(ps -ef | grep "[0-9] python server\\.py a" | awk '{print "kill "$2}') |
|||
ulimit -n 4096 |
|||
nohup python server.py a >> ssserver.log 2>&1 & |
|||
|
@ -1,5 +1,6 @@ |
|||
#!/bin/bash |
|||
cd `dirname $0` |
|||
eval $(ps -ef | grep "[0-9] python server\\.py a" | awk '{print "kill "$2}') |
|||
nohup python server.py a >> ssserver.log 2>&1 & |
|||
ulimit -n 4096 |
|||
nohup python server.py a >> /dev/null 2>&1 & |
|||
|
|||
|
Loading…
Reference in new issue