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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...