diff --git a/bin/cc-node b/bin/cc-node index d0002a960ad6b40b525bbfb0cc0cd52c31b15968..f5a8c1797d92938b64445177174686991a7f4058 100755 --- a/bin/cc-node +++ b/bin/cc-node @@ -36,7 +36,7 @@ if not isfile(options.config): # take care of pid file if daemon if options.daemonize: - pidfile = open(options.pidfile) + pidfile = open(options.pidfile, 'w') files_preserve = [pidfile] else: files_preserve = None