diff --git a/plugins/csvn/index.html b/plugins/csvn/index.html
index 1ea4b7717..bb1e7800d 100755
--- a/plugins/csvn/index.html
+++ b/plugins/csvn/index.html
@@ -2,8 +2,7 @@
diff --git a/plugins/csvn/index.py b/plugins/csvn/index.py
index b496dacc5..1d631c9e2 100755
--- a/plugins/csvn/index.py
+++ b/plugins/csvn/index.py
@@ -1,7 +1,6 @@
# coding: utf-8
import time
-import psutil
import random
import os
import urllib
@@ -14,6 +13,24 @@ sys.path.append(os.getcwd() + "/class/core")
import public
+def getPluginName():
+ return 'csvn'
+
+
+def getPluginDir():
+ return public.getPluginDir() + '/' + getPluginName()
+
+
+def getServerDir():
+ return public.getServerDir() + '/' + getPluginName()
+
+
+def getInitDFile():
+ if app_debug:
+ return '/tmp/' + getPluginName()
+ return '/etc/init.d/' + getPluginName()
+
+
def status():
return 'start'
@@ -21,3 +38,5 @@ if __name__ == "__main__":
func = sys.argv[1]
if func == 'status':
print status()
+ else:
+ print 'error'