# Configuring Freezemonitor Self-Terminate Function

The self-terminate function checks whether freezemonitor can keep running as a daemon based on user configuration.

These are the steps to configure its behavior.

  1. In an Open iT client, open freezemonitor.xml in the Components directory, which is by default in /var/opt/openit/etc/Components.

  2. Locate node object self-terminate and set it to true to enable the self-terminate behavior.

    freezemonitor.xml
     106|	<Object>
     107|        <Name>self-terminate</Name>
     108|		<Description>Enable self-termination</Description>
     109|        <Value type="Bool">true</Value>

    By default, freezemonitor does not perform the task during its first startup, you can change this by setting the skip-on-startup object to false.

  3. Locate the node object task and determine the factor to help decide when the freezemonitor will self-terminate. Choose among the tasks subobjects, bind, tail, and display.

    Example: freezemonitor.xml
     111|	<Object>
     112|        <Name>task</Name>
     113|        <Description>Criterion for self-termination. Options ( bind, tail or display )</Description>
     114|        <Value type="String">tail</Value>
    • If you choose the bind task, locate the node object bind and list (comma-separated) executables that should not run for freezemonitor to self-terminate.
      Example: bind task
      128|	<Object>
      129|        <Name>bind</Name>
      130|        <Description>Returns true when none of the listed executables are running. Ex: *femfat.tcl*,*a4_linux64*</Description>
      131|        <Value type="String">*a4_linux64*</Value>
    • If you choose the tail task, locate the node object tail and list patterns that the user processes need to match. If all running user processes match a pattern, freezemonitor will self-terminate.
      Example: tail task
      133|	<Object>
      134|        <Name>tail</Name>
      135|        <Description>Returns true when all the user's processes match any of the patterns below</Description>
      136|        <Value type="String">*openit_*,sshd*,bash,*sftp-server*,*ps *</Value>
    • If you choose the display task, freezemonitor will self-terminate if it can no longer connect to the user display.
      freezemonitor.xml
      138|	<Object>
      139|        <Name>display</Name>
      140|        <Description>Returns true if freezemon cannot connect to the user's display</Description>
      141|        <Value type="String"></Value>
  4. Save the changes.

  5. Go to the bin directory, which is by default in /var/opt/openit/bin, run the command:

    Command Syntax
     cd $BIN_DIR
    Example
     cd /var/opt/openit/bin
  6. Update the configuration file, run the command:

    Command Syntax
     ./openit_confbuilder --client

We value your feedback!

Please take a few minutes to complete our survey and share your thoughts on your recent experience with our documentation.

Take survey

Close