63
81
parser = OptionParser(usage='usage: %prog [options]', version='%prog ' + release.version)
64
82
parser.add_option('-f', '--foreground', action='store_true', dest='foreground', default=False,
65
83
help="run in the foreground; don't daemonize")
66
84
parser.add_option('-C', '--check', action='store_true', dest='check', default=False,
67
85
help="only start if not already running (useful for cron jobs)")
86
parser.add_option('-p', '--pidfile', dest="pidfile", default=default_pidfile,
68
88
options, args = parser.parse_args()
70
90
parser.error('No filename arguments are used, only options.')