include "../../logf1.include";
include "../../log.include";
include "../../exit.include";
include "../../sh.include";
include "../../alive.include";

system: mysleep
{
	logf1 logfile( 0, "test", "Alive returned %s" );
	exit myexit();
	log logerr( 0, "test" );
	sh runsleep( "/bin/sh" );

	
	process mysleep 1000:
	{
		alive issleepalive();


		start
		{
			mysleep = runsleep( "exec sleep 10");
		}
		restart
		{
			mysleep = runsleep( "exec sleep 10");
		}
		dependfail
		{
			logerr( 5, "nothing depends on this!" );
		}

		proc checksleep 2000
		{
			logfile( 5, issleepalive );
			myexit( 0 );
		}
	}
	

		
	

}
