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
acdsn:daemon_installation [2012/09/30 21:10] – [For a complete installation of the acdsn server] sbolayacdsn:daemon_installation [2012/10/03 10:02] (current) – [For a complete installation of the acdsn server] sbolay
Line 38: Line 38:
     chmod +x tmpfs     chmod +x tmpfs
     update-rc.d tmpfs defaults 10     update-rc.d tmpfs defaults 10
 +    //OR
 +    insserv tmpfs
     </code>     </code>
   - modify the [[acdsn:networks|/etc/network/interfaces]] to allow hotplug   - modify the [[acdsn:networks|/etc/network/interfaces]] to allow hotplug
  
-If you want to make automatic reverse ssh tunnel, you can add:+If you want to make an automatic reverse ssh tunnel, you can add:
   - install expect package to create a remote ssh tunnel<code bash>   - install expect package to create a remote ssh tunnel<code bash>
     aptitude install expect</code>     aptitude install expect</code>
Line 66: 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.1349039440.txt.gz · Last modified: 2012/09/30 21:10 by sbolay