Temperature monitoring daemon sample

Sample of daemon program for temperature monitoring

  * Please refer to the following contents when you install separately.
  ・Launch the console, move to the directory of cothermald, and execute "make" command
  to create the object file and executable file.
    $ cd (cothermald directory)
    $ make
      ./cothermald, ./cothermald.o

  ・When "make install" is executed, files are extracted to a directory. (Requires root privileges.)
    $ make install

  ・The temperature monitoring daemon is started by executing "make service_start".
    It is also set to run automatically. (Requires root privileges.)
    $ make service_start

    This temperature monitoring daemon is set as "cothermald".

  ・When uninstalling, stop the cothermald(temperature monitoring daemon) with "make service_stop"
  and delete the files extracted in each directory with "make uninstall". (Requires root privileges.)
    $ make service_stop
    $ make uninstall

  * Please install CORAS (LNX) library and driver module in advance.
  * It is configured to use systemd or upstart to manage the daemon.
  * Please edit the configuration file properly by using GUI tool or manual setting for temperature monitoring daemon.
  * Please refer to the program source and the contents of each script file for details of this program.

  "cothermald.config" initial value
    ・The default value is a temporary value. Please change the setting value appropriately.
    ・The contents of the line following "#" are treated as comments.
    ・The contents of setting file are monitoring temperature setting, monitoring cycle setting, syslog output setting, socket setting, alert operation setting.
      There is a limit of 128 characters per line. If you want to edit the configuration file directly,
      please refer to the description of the comment and the item about the setting of the temperature
      monitoring daemon of the GUI sample utility for the content of the setting.

    ■ cothermald.config
#cothermald settings #limited 128/line CPUth1=60 CPUth2=65 MBth1=60 MBth2=65 #interval 2000 - 60000(msec.) Interval=2000#msec. #syslog priority # set 0 ... no output # 1 ... emerge # 2 ... alert # 3 ... crit # 4 ... err # 5 ... warn # 6 ... notice # 7 ... info # 8 ... debug logcputh1=7 logcputh2=7 logmbth1=7 logmbth2=7 #unixdomain socket path sun_path=/tmp/cothermald-socket.0 #(none), shutdown, reboot, popup, (filepath(limited 128)) CPUth1AlarmAction=none CPUth2AlarmAction=none MBth1AlarmAction=none MBth2AlarmAction=none