Jump to content
Sign in to follow this  
pweil

How to restart retrocllient?

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 ${?}

}

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×