mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Merge branch 'master' of git+ssh://supybot.git.sourceforge.net/gitroot/supybot
This commit is contained in:
commit
cedc4aaebe
@ -111,6 +111,13 @@ if __name__ == '__main__':
|
||||
debug('Pid %s is not the bot.' % pid)
|
||||
|
||||
if not foundBot:
|
||||
# First, we check if the pidfile is writable. If not, supybot will just exit,
|
||||
# so we go ahead and refuse to start it.
|
||||
try:
|
||||
file(options.pidfile, 'r+')
|
||||
except EnvironmentError, e:
|
||||
debug('pidfile (%s) is not writable: %s' % (options.pidfile, e))
|
||||
sys.exit(-1)
|
||||
debug('Bot not found, starting.')
|
||||
home = os.environ['HOME']
|
||||
inst = popen2.Popen4('sh')
|
||||
|
Loading…
Reference in New Issue
Block a user