Catch permission denied when creating pid file #167

Closed
sebdah opened this Issue May 19, 2014 · 0 comments

Projects

None yet

1 participant

@sebdah
Owner
sebdah commented May 19, 2014

An exception in thrown when dynamic-dynamodb cannot create a pid file:

2014-05-19 07:23:34,013 - dynamic-dynamodb - ERROR - [Errno 13] Permission denied: './dynamic-dynamodb.default.pid'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/dynamic_dynamodb/__init__.py", line 65, in main
    daemon.start()
  File "/usr/local/lib/python2.7/site-packages/dynamic_dynamodb/daemon.py", line 94, in start
    self.daemonize()
  File "/usr/local/lib/python2.7/site-packages/dynamic_dynamodb/daemon.py", line 73, in daemonize
    file(self.pidfile, 'w+').write("%s\n" % pid)
IOError: [Errno 13] Permission denied: './dynamic-dynamodb.default.pid'
@sebdah sebdah added this to the Feature request pool milestone May 19, 2014
@sebdah sebdah self-assigned this May 19, 2014
@sebdah sebdah modified the milestone: 1.14.x, Feature request pool May 19, 2014
@sebdah sebdah added a commit that referenced this issue May 19, 2014
@sebdah Catch IOError for PID file #167 9bc1e9a
@sebdah sebdah closed this May 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment