User Tools

Site Tools


acdsn:daemon_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
acdsn:daemon_installation [2012/09/21 13:16] – [monit] sbolayacdsn:daemon_installation [2012/09/30 21:15] – [monit] sbolay
Line 6: Line 6:
 ===== For a complete installation of the acdsn server ===== ===== For a complete installation of the acdsn server =====
   - ssh to the [[http://www.acmesystems.it/FOXG20|FoxG20]] box and login (root/netusg20)   - ssh to the [[http://www.acmesystems.it/FOXG20|FoxG20]] box and login (root/netusg20)
-  - then keep the server on time to avoid time stamp error<code bash>+  - update the debian source-list with your favorite debian package mirror<code bash> 
 +    vi /etc/apt/source.list</code> 
 +  - keep the server on time to avoid time stamp error<code bash>
     aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</code>     aptitude update && aptitude install ntpdate && ntpdate ntp.metas.ch</code>
   - update the installation<code bash>   - update the installation<code bash>
Line 13: Line 15:
     aptitude update && aptitude install automake make libtool flex byacc bison g++ libldap2-dev texinfo</code>     aptitude update && aptitude install automake make libtool flex byacc bison g++ libldap2-dev texinfo</code>
   - Compile and install [[http://www.hyperrealm.com/libconfig/|libconfig]]<code bash>   - Compile and install [[http://www.hyperrealm.com/libconfig/|libconfig]]<code bash>
-    ./configure && make && make install)</code>+    ./configure && make && make install</code>
     * If you get libtool: Version mismatch error.<code bash>     * If you get libtool: Version mismatch error.<code bash>
       This is libtool 2.2.6, but the       This is libtool 2.2.6, but the
Line 33: Line 35:
   - configure files in /etc/acdsn (especially /dev/ttyS?)   - configure files in /etc/acdsn (especially /dev/ttyS?)
   - modify the [[acdsn:tmpfs#etc_default_tmpfs|/etc/default/tmpfs]] file to mount heavy files/directories into memory   - modify the [[acdsn:tmpfs#etc_default_tmpfs|/etc/default/tmpfs]] file to mount heavy files/directories into memory
-  - add the [[acdsn:tmpfs#etc_initd_tmpfs|tmpfs init script into /etc/init.d]] and update-rc.d tmpfs defaults 10+  - add the [[acdsn:tmpfs#etc_initd_tmpfs|tmpfs init script into /etc/init.d]]((http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot))((http://giantdorks.org/alain/managing-services-in-debian/))((http://www.debuntu.org/how-to-manage-services-with-update-rc.d)) and<code bash> 
 +    chmod +x tmpfs 
 +    update-rc.d tmpfs defaults 10 
 +    //OR 
 +    insserv tmpfs 
 +    </code>
   - modify the [[acdsn:networks|/etc/network/interfaces]] to allow hotplug   - modify the [[acdsn:networks|/etc/network/interfaces]] to allow hotplug
  
Line 61: Line 68:
 Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.// Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.//
 <code bash>aptitude install monit</code> <code bash>aptitude install monit</code>
 +
 +Add configuration in /etc/monit/conf.d/acdsn
 +<code bash>
 +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"
 +</code>
  
 === Reference === === Reference ===
   * [[http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html|Monitor and restart Apache or lighttpd webserver when daemon is killed]]   * [[http://www.cyberciti.biz/tips/howto-monitor-and-restart-linux-unix-service.html|Monitor and restart Apache or lighttpd webserver when daemon is killed]]
   * You my be interested also to the respawn option of the [[http://unixhelp.ed.ac.uk/CGI/man-cgi?inittab+5|inittab]]. (See this [[http://www.linuxquestions.org/questions/linux-general-1/automatic-restart-3541/|post]])   * You my be interested also to the respawn option of the [[http://unixhelp.ed.ac.uk/CGI/man-cgi?inittab+5|inittab]]. (See this [[http://www.linuxquestions.org/questions/linux-general-1/automatic-restart-3541/|post]])
acdsn/daemon_installation.txt · Last modified: 2012/10/03 10:02 by sbolay