supervise(1) supervise(1) NNAAMMEE supervise - start and monitor a service SSYYNNOOPPSSIISS ssuuppeerrvviissee [ --rrssuuddooxx ] _d_i_r _p_r_o_g_r_a_m [ _a_r_g_s _._._. ] DDEESSCCRRIIPPTTIIOONN ssuuppeerrvviissee runs _p_r_o_g_r_a_m with the given _a_r_g_s. It restarts _p_r_o_g_r_a_m if _p_r_o_g_r_a_m dies. ssuuppeerrvviissee maintains status information, in a binary format, in _d_i_r//ssttaa-- ttuuss. It uses _d_i_r//ssttaattuuss..nneeww as a temporary file so that _d_i_r//ssttaattuuss is never partially written. _d_i_r must already exist and be writable for ssuuppeerrvviissee. ssuuppeerrvviissee accepts commands from ssvvcc through the _d_i_r//ssvvccoonnttrrooll file. ssuuppeerrvviissee locks _d_i_r//lloocckk, so two copies of ssuuppeerrvviissee cannot run with the same _d_i_r. ssuuppeerrvviissee pauses for a second before starting _p_r_o_g_r_a_m, so that it does not loop too quickly if _p_r_o_g_r_a_m exits immediately. OOPPTTIIOONNSS --rr (Default.) _p_r_o_g_r_a_m is normally running. Sets, but does not force, --uu. --ss _p_r_o_g_r_a_m is normally not running. Sets, but does not force, --dd. --uu (Default.) Start _p_r_o_g_r_a_m immediately. If it stops, restart it. --dd Do not start _p_r_o_g_r_a_m. --oo Start _p_r_o_g_r_a_m immediately. If it stops, do not restart it. --xx Exit as soon as _p_r_o_g_r_a_m stops. SSEEEE AALLSSOO svc(1), svstat(1), testfilelock(1) supervise(1)