monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some little inconsistencies with 'restart'...


From: Martin Pala
Subject: Re: Some little inconsistencies with 'restart'...
Date: Mon, 8 Jul 2002 18:45:08 +0200

----- Original Message -----
From: <address@hidden>
To: <address@hidden>
Sent: Monday, July 08, 2002 6:09 PM
Subject: Re: Some little inconsistencies with 'restart'...


> Actually, there should probably be a restart program field as well. When
> we add the change to define the script dir, we should add this change as
> well, so we could have:
> set scriptdir "/etc/rc.d.init.d"
> set rundir "/var/run"
>
> check portmap
>
> check apache
> port 80 type tcp
>
> check foo
> restart program = "foo restart"
>
> so that by default, stop and start are defined as ${scriptdir}/${program}
> stop|start, restart is a stop and start and pidfile is
> ${rundir}/${program}.pid.
> The only question is whether for restart program if $0 stop; $0 start or
> $0 restart should be the default.

Solaris rc-scripts doesn't support 'restart' command at all (by default) -
when you will use 'restart' as independent operation in monit, you will need
to modify all used rc-scripts.  I think that it is sufficient to have
present start+stop commands in monit, while it is simple and common for most
Unixes and even when 'restart' command is supported it is usualy based in
rc-script on '$0 start; $0 stop' (so they are most primitive operations,
that you could use to do restart) => i think that it will be better to keep
simple 'start' and 'stop'.

Cheers,
Martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]