iclab/centinel

Daemonize bug when moving scripts

Closed this issue · 0 comments

Daemonize crashes on some nix flavors. We should use the workaround mentioned here to get around it.

$ sudo centinel --daemonize
Traceback (most recent call last):
  File "/usr/local/bin/centinel", line 11, in <module>
    sys.exit(run())
  File "/usr/local/lib/python2.7/dist-packages/centinel/cli.py", line 141, in run
    args.user)
  File "/usr/local/lib/python2.7/dist-packages/centinel/daemonize.py", line 69, in daemonize
    create_script_for_location(hourly, path)
  File "/usr/local/lib/python2.7/dist-packages/centinel/daemonize.py", line 25, in create_script_for_location
    os.rename(temp.name, destination)
OSError: [Errno 18] Invalid cross-device link