summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-27 19:13:26 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-11-27 19:13:26 +0100
commite0db5bfa547aa379dc10c7bbc8b1cc54f0819d27 (patch)
tree560be3412d8482f1ffa13143ecfb3af8533108f3 /pyLoadCore.py
parentupdate letitbit.net, fix fileserve lists (diff)
downloadpyload-e0db5bfa547aa379dc10c7bbc8b1cc54f0819d27.tar.xz
closed #435
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 47fb419e7..97c9ec64b 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -83,14 +83,17 @@ class Core(object):
if len(argv) > 1:
try:
- options, args = getopt(argv[1:], 'vchdusq',
- ["version", "clear", "clean", "help", "debug", "user", "setup", "configdir=", "changedir", "daemon",
- "quit", "status", "no-remote"])
+ options, args = getopt(argv[1:], 'vchdusqp:',
+ ["version", "clear", "clean", "help", "debug", "user",
+ "setup", "configdir=", "changedir", "daemon",
+ "quit", "status", "no-remote","pidfile="])
for option, argument in options:
if option in ("-v", "--version"):
print "pyLoad", CURRENT_VERSION
exit()
+ elif option in ("-p", "--pidfile"):
+ self.pidfile = argument
elif option == "--daemon":
self.daemon = True
elif option in ("-c", "--clear"):
@@ -159,9 +162,10 @@ class Core(object):
print " -d, --debug", " " * 12, "Enable debug mode"
print " -s, --setup", " " * 12, "Run Setup Assistent"
print " --configdir=<dir>", " " * 6, "Run with <dir> as config directory"
+ print " -p, --pidfile=<file>", " " * 3, "Set pidfile to <file>"
print " --changedir", " " * 12, "Change config dir permanently"
print " --daemon", " " * 15, "Daemonmize after start"
- print " --no-remote", " " * 14, "Disable remote access (saves RAM)"
+ print " --no-remote", " " * 12, "Disable remote access (saves RAM)"
print " --status", " " * 15, "Display pid if running or False"
print " --clean", " " * 16, "Remove .pyc/.pyo files"
print " -q, --quit", " " * 13, "Quit running pyLoad instance"