@@ -6,7 +6,7 @@ LDFLAGS=-lonion -ljson -lmysqlclient -lpthread -L/usr/lib64/mysql/ -Lonion/build
hello: hello.c
clean:
- rm *.o hello
+ rm -f *.o hello
onion:
@@ -4,6 +4,8 @@
"default": {
"setup_file": "setup",
"json_url": "/",
+ "db_url": "/db",
+ "query_url": "/db?queries=",
"port": 8080,
"sort": 37
}
@@ -3,8 +3,10 @@ import sys
import os
def start(args):
+ os.putenv("ONION_LOG","noinfo")
os.system("make && ./hello &")
return 0
+
def stop():
p = subprocess.Popen(['ps', 'aux'], stdout=subprocess.PIPE)