Jump to content

How to restart retrocllient?


pweil

Recommended Posts

Like others, retroclient has occasionally crapped out on my Linux boxes. I have an init.d script for restarting it, but once the client hangs, often I can't seem to restart it. What do other people use to restart the client? Here's my init.d script (running on Gentoo, btw):

 

depend() {

need net

}

 

export RETROSPECT_HOME="/usr/local/dantz/client"

 

start() {

start-stop-daemon --start -b --quiet -mp /var/run/retrospect.pid \

--exec /usr/local/dantz/client/retroclient -- --daemon

eend ${?}

}

 

stop() {

ebegin "Stopping retroclient"

start-stop-daemon --stop --quiet --pidfile /var/run/retrospect.pid

eend ${?}

}

Link to comment
Share on other sites

  • 4 weeks later...

What we decided to do is restart it before it craps out. We created a special backup job that tells the client to restart - we run this after every backup or the client will continue to allocate memory (heap) to itself every time it's run and finally run out of address space causing it to hang.

 

We added this into the /etc/retroeventhandler script and created a job called "PISTON Client Restart"

 

if [ "$2" = "\"PISTON Client Restart\"" ] && [ "$1" = "EndSource" ]; then

/usr/local/dantz/client/retrocpl -stop >>$LOGFILE

/usr/local/dantz/client/retroclient -daemon >>$LOGFILE

echo "Retrospect Client Restarted" >> $LOGFILE

fi

 

This way, at the end of the special backup job, the server is signaled to restart the client.

 

If you don't go this route, you can always issue a "killall retroclient" or "killall -9 retroclient". This has always worked for us in the situations where restarts failed to do the trick.

 

Brian

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...