summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-11 22:01:55 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-11 22:01:55 +0200
commitbca8ceaa7de08fa4395ca243eb96a65888d74ef8 (patch)
tree3842d89a2d222cf9301ce8086242abced5b8ff29 /pyLoadCore.py
parentclosed #402 (diff)
downloadpyload-bca8ceaa7de08fa4395ca243eb96a65888d74ef8.tar.xz
restart / quit buttons in webif
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index ae84f111c..ad84bdef5 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -624,14 +624,12 @@ def deamon():
pyload_core.start()
-# And so it begins...
-if __name__ == "__main__":
+def main():
#change name to 'pyLoadCore'
#from module.lib.rename_process import renameProcess
#renameProcess('pyLoadCore')
-
if "--daemon" in sys.argv:
- deamon()
+ deamon()
else:
pyload_core = Core()
try:
@@ -641,3 +639,8 @@ if __name__ == "__main__":
pyload_core.log.info(_("killed pyLoad from Terminal"))
pyload_core.removeLogger()
_exit(1)
+
+# And so it begins...
+if __name__ == "__main__":
+ main()
+