Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed args for start() call on restart(). #1

Merged
merged 3 commits into from
Jan 2, 2014
Merged

Fixed args for start() call on restart(). #1

merged 3 commits into from
Jan 2, 2014

Conversation

ternstor
Copy link
Contributor

When trying to restart a daemon that's already stopped, the start call raises the following exception:

Traceback (most recent call last):
File "manage.py", line 14, in
execute_manager(settings)
File "/usr/lib/python2.6/site-packages/django/core/management/init.py", line 459, in execute_manager
utility.execute()
File "/usr/lib/python2.6/site-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(_args, *_options.dict)
File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 232, in execute
output = self.handle(_args, *_options)
File "/usr/lib/python2.6/site-packages/django/core/management/base.py", line 371, in handle
return self.handle_noargs(**options)
File "/usr/lib/python2.6/site-packages/django_initd-0.0.1-py2.6.egg/daemon_command.py", line 64, in handle_noargs
daemon.execute(action, run=self.loop_callback, exit=self.exit_callback)
File "/usr/lib/python2.6/site-packages/django_initd-0.0.1-py2.6.egg/initd.py", line 131, in execute
cmd(run, exit)
File "/usr/lib/python2.6/site-packages/django_initd-0.0.1-py2.6.egg/initd.py", line 126, in restart
self.start(run, self.pid_file, self.log_file)
TypeError: start() takes at most 3 arguments (4 given)

Which is fixed by this commit. Thanks for such a helpful package :)

danielroseman added a commit that referenced this pull request Jan 2, 2014
Fixed args for start() call on restart().
@danielroseman danielroseman merged commit 2091222 into danielroseman:master Jan 2, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants