Raku Overwatch can be used to restart programs when they crash or when files are modified.
overwatch [options] <program> [<program arguments>]
<program>
A program/script name is required.
-e=<executable> | --execute=<executable>
Default: raku
The executable that runs the specified
-k | --keep-alive
Default: True
Automatically rerun the program.
-x | --exit-on-error
Default: False
Stop overwatch if the
-g | --git
Default: 0
Checks default upstream git repository and pulls if local is behind.
A value of zero or less disables this option.
-q | --quiet
Default: False
Prevents overwatch from printing informative messages to stdout.
-w | --watch
Default: []
Directories/files to watch for changes, when a file is changed the
-f | --filter
Default: ''
Comma separated list of file extensions to watch for changes. List applies to all watch
dirs.
-p | --pargs
Default: []
List of arguments to start the executable with. Example overwatch -p='-e' 'sleep 5'
would monitor the process: raku -e 'sleep 5'
overwatch app.pl6
overwatch -w=models mvc.pl6
overwatch -w=/tmp/ -e=/bin/sh shellscript.sh --shellarg=go