#!/bin/sh

################################################################################
# Run after installing the main package files. This script lays down any
# required folders, install notes and links that may be needed by the software.
#
# Code42 Software Inc, Minneapolis, MN
# http://www.code42.com/
# 
# Copyright (c) 2008 Code42 Software, All Rights Reserved
################################################################################

# attempt to stop if still running
PID=`/usr/bin/ps -Af -o pid,ppid,args | grep 'app=CrashPlanService' | grep -v grep | awk '{ print $1 }'`
if [ -n "$PID" ]; then
  echo Still running, killing PID=$PID
  kill -9 $PID
fi

exit 0
