This is the master daemon for the monitoring project. It first listen to the RS485 network and if there is no backup master (slave) this daemon will take the hand!
vi /etc/apt/source.list
aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch
aptitude update && aptitude safe-upgrade
aptitude update && aptitude install automake make libtool flex byacc bison g++ libldap2-dev texinfo
./configure && make && make install
This is libtool 2.2.6, but the
libtool: definition of this LT_INIT comes from libtool 2.2.6b.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6
libtool: and run autoconf again.
autoreconf --force --install
ldconfig
/usr/bin/ldconfig -l /usr/local/lib/libconfig.so.9
autoreconf -fvi ./configure && make
chmod +x tmpfs update-rc.d tmpfs defaults 10 //OR insserv tmpfs
If you want to make an automatic reverse ssh tunnel, you can add:
aptitude install expect
ssh-keygen -t rsa
cat id-rsa.pub >> authorized_keys
export EDITOR=vi
*/5 * * * * /bin/bash /media/data/connect.sh -u sbolay -t bolay.co -e /media/data/.add-rsa -l 1091 -r 9031 */5 * * * * /bin/bash /media/data/connect.sh -u sbolay -t bolay.co -e /media/data/.add-rsa -l 22 -r 9023
⇒ It is to hard for the kernel
aptitude purge apt-xapian-index
From man page:
monit is a utility for managing and monitoring processes, files, directories and filesystems on a Unix system.
Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
aptitude install monit
Add configuration in /etc/monit/conf.d/acdsn
check process acdsn with pidfile /var/run/acdsn.pid start program = "/etc/init.d/acdsn start" with timeout 60 seconds stop program = "/etc/init.d/acdsn stop"