Fixed injectinit function

Change-Id: Ib70f7bfac23c4210c533ebc075b65acf4f15f4ca
This commit is contained in:
Igor Yozhikov 2013-07-18 17:42:35 +04:00
parent 6a88489524
commit de84824a88

View File

@ -178,11 +178,6 @@ get_service_exec_path()
# inject init
injectinit()
{
ln -s /lib/init/upstart-job /etc/init.d/$SERVICE_SRV_NAME
if [ $? -ne 0 ]; then
log "Can't create symlink, please run \"$(basename "$0") purge-init\" before \"$(basename "$0") inject-init\", exiting"
exit 1
fi
echo "description \"$SERVICE_SRV_NAME service\"
author \"Igor Yozhikov <iyozhikov@mirantis.com>\"
start on runlevel [2345]