Home | History | Annotate | Download | only in utils

Lines Matching refs:pidfile

6 def stop_service(pidfile):
8 Stop a service using a pidfile.
12 @param pidfile: file to read for the process id number
14 pidfh = open(pidfile)
19 def start_service(cmd, pidfile, logfile=os.devnull, chdir=None):
21 Start cmd in the background and write the pid to pidfile.
24 @param pidfile: pidfile to write the pid to
29 pidfh = open(pidfile, 'w')
105 parser.add_option('-p', '--pidfile', action='store',
119 if not options.pidfile:
120 print 'A pidfile must always be supplied'
126 start_service(args, options.pidfile, options.logfile, options.chdir)
128 stop_service(options.pidfile)