/[monit]/monit/monit.pod
ViewVC logotype

Diff of /monit/monit.pod

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.49 by hauk, Sat Dec 21 19:39:35 2002 UTC revision 1.50 by hauk, Sun Dec 22 15:34:11 2002 UTC
# Line 175  non-root user the location of the lock f Line 175  non-root user the location of the lock f
175  I<$HOME/.monit.pid>. The lock file is removed when a monit daemon  I<$HOME/.monit.pid>. The lock file is removed when a monit daemon
176  is stopped.  is stopped.
177    
178  In special situations, you may need to control the location of  Normally it's not necessary to consider the location of the lock
179  the lock file. For instance if you run monit as root on two  file but in certain very special situations, you may need to
180  different machines but with the same file system you will need to  control the location. For instance if you run monit as root on
181  change the location of the monit lock file via the I<-p> option.  two different machines but with the same file system you will
182  If you use this option you will have to submit the '-p pidfile'  need to change the location of the monit lock file via the I<-p>
183  to every subsequent calls to monit. You can also set the location  option.  You can also set the location of the lock file on a more
184  of the lock file on a more permanent basis via this global  permanent basis via this global set-statement in a monitrc
185  set-statement in the monitrc control file: (keywords are in  control file: (keywords are in capital)
 capital)  
186    
187     SET PIDFILE {pidfile}     SET PIDFILE {pidfile}
188    
189  For instance, I<set pidfile /run/monit.pid>. But unless it is  For instance, I<set pidfile /run/monit.pid>.
 important for you, you do not have to think about the location of  
 the lock file.  
190    
191    
192  =head1 INIT SUPPORT  =head1 INIT SUPPORT
193    
194  Monit can be run and controlled from I<init>. In the (unlikely)  Monit can be run and controlled from I<init>. In case monit
195  case of a monit crash init will respawn a new monit process.  crashes init will respawn a new monit process.
196    
197  You can use either the 'set init' statement in monit's  You can use either the 'set init' statement in monit's
198  configuration file or use the -I option from the command line.  configuration file or use the -I option from the command line.
# Line 1016  Processes specified in a I<depends> stat Line 1013  Processes specified in a I<depends> stat
1013  during stop/start operations. If a process is stopped it will  during stop/start operations. If a process is stopped it will
1014  first stop any processes that depends on itself. Likewise, if a  first stop any processes that depends on itself. Likewise, if a
1015  process is started, it will first stop any processes that depends  process is started, it will first stop any processes that depends
1016  on itself, then start and finally start the depending processes  on itself and after it is started, start all depending processes
1017  again.  again.
1018    
1019  Consider the following common server setup:  Consider the following common server setup:
# Line 1025  Consider the following common server set Line 1022  Consider the following common server set
1022    
1023  You can set dependencies so that the web-server depends on the  You can set dependencies so that the web-server depends on the
1024  application server to run before the web-server starts and the  application server to run before the web-server starts and the
1025  application server depends on the database server to run before  application server depends on the database server. See also the
1026  it starts. See the example section below for the configuration  example section below for examples using the depend statement.
1027  statements used for such a setup.  
1028    
1029  Here we describe how monit will function with the above  Here we describe how monit will function with the above
1030  dependencies:  dependencies:
# Line 1258  much easier to read at a glance. The pun Line 1255  much easier to read at a glance. The pun
1255                   start, alert or stop is avtivated.                   start, alert or stop is avtivated.
1256    
1257   depends (on)    Must be followed by the name of a process this   depends (on)    Must be followed by the name of a process this
1258                   process depends on to run before it starts. The                   process depends on to run before it starts.
1259                   depending process will be stopped before the  
                  current process is started and started again  
                  after.  
1260    
1261  Here's the complete list of reserved B<keywords> used by monit:  Here's the complete list of reserved B<keywords> used by monit:
1262    

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26