Permalink
Browse files

Raise an AssertionError when run in daemon without a pid path specifi…

…ed. Closes #112
  • Loading branch information...
1 parent 7640987 commit 0d75e1dd3280d2c87ea6bfbf7aaa6292da357efe @josegonzalez josegonzalez committed Apr 2, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 bin/beaver
View
1 bin/beaver
@@ -9,6 +9,7 @@ args = parse_args()
version(args)
if args.daemonize:
+ assert args.pid, "A pid path must be specified in the beaver config or via the -P flag"
with daemon.DaemonContext(pidfile=PidFile(args.pid),):
run(args)
else:

0 comments on commit 0d75e1d

Please sign in to comment.