mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
supybot-botchk: Use a different method for creating pidfile if it doesn't exist
This commit is contained in:
parent
658d0ad84d
commit
ff1d9c4f69
@ -97,8 +97,8 @@ if __name__ == '__main__':
|
|||||||
parser.error('No conffile given.')
|
parser.error('No conffile given.')
|
||||||
|
|
||||||
os.chdir(options.botdir)
|
os.chdir(options.botdir)
|
||||||
pidfile = open(options.pidfile, 'ab')
|
if not os.path.exists(options.pidfile):
|
||||||
pidfile.close()
|
open(options.pidfile, 'x').close()
|
||||||
|
|
||||||
pid = None
|
pid = None
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user