Skip to content

Instantly share code, notes, and snippets.

@spacekitcat
Created February 25, 2018 16:11
Show Gist options
  • Save spacekitcat/0a711ed63b258481a10d243f65dd7efc to your computer and use it in GitHub Desktop.
Save spacekitcat/0a711ed63b258481a10d243f65dd7efc to your computer and use it in GitHub Desktop.
Initd script to bootstrap the watch command when the system starts up. The watch command periodically runs a bash script.
#!/bin/bash
screen -d -m sudo watch -n5 'bash /opt/bin/pop_motion_queue.sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment