#!/bin/sh

#--- Hook-in into the system boot stuff
ln -sf /opt/filepath/filepath /etc/init.d/filepath

/sbin/chkconfig --add filepath >/dev/null 2>&1

#--- Start Filepath
/opt/filepath/filepath start || echo ERROR: Failed to start filepath with error $?

exit 0
