supervise(1)

NAME
supervise - start and monitor a service

SYNOPSIS
supervise [ -rsudo ] dir program [ args ... ]

DESCRIPTION
supervise runs program with the given args. It restarts program if program dies. supervise maintains a line of readable status information in dir/status. It uses dir/status.new as a temporary file so that dir/status is never partially written. supervise accepts commands from svc through the dir/svcontrol file. supervise locks dir/lock to prevent confusion. dir must already exist and be writable for supervise. supervise pauses for a second before starting program, so that it does not loop too quickly if program exits immediately.

OPTIONS

-r  (Default.) program is normally running. Sets, but does not force, -u.

-s  program is normally not running. Sets, but does not force, -d.

-u  (Default.) Start program immediately. If it stops, restart it.

-d  Do not start program.

-o  Start program immediately. If it stops, do not restart it.

SEE ALSO
svc(1)