Re: [WebDNA] Sorry WebDNA server not running
This WebDNA talk-list message is from 2014
It keeps the original formatting.
numero = 111415
interpreted = N
texte = --Apple-Mail=_820589E5-DAAE-44D4-B956-8CF236E7026CContent-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=windows-1252Hi Matt,I wrote a shell script a while back to check and restart webDNA as =necessary. It runs on Mac OSX but you should be able to adapt it (see =below).Phil#!/bin/sh=#-------------------------------------------------------------------------=------# This script will:# (1) Check for a named process and relaunch it if it is not running;# (2) Check a URL and relaunch a process if it gets an error message; or# (3) Relaunch the process if the URL does not load withing a set time.## To install place in /usr/local/bin/ and create a launchdaemon or=20# add following 2 lines to crontab:## WebDNA Checker#*/4 * * * * root =/usr/local/bin/check-webdna-mk2.sh## Phil Ronchetti# modified 2011/10/18=#-------------------------------------------------------------------------=------#SettingsThisHost=3D$(hostname)ProcessName=3D"WebCatalog"=Command1=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/WebCatalog=Ctl stop"=Command2=3D"/Library/WebServer/CGI-Executables/WebCatalogEngine/WebCatalog=Ctl start"#ChecksCheckProcess=3D$(ps axc | grep -i $ProcessName) #Gets info on the =process with this nameCheckHTTP=3D$(curl -m 12 http://$ThisHost/webcatalog/)case $CheckHTTP in*"