#!/bin/sh

# Upstart
if command -v initctl >/dev/null 2>&1; then
    initctl stop "{{{project.artifactId}}}" >/dev/null 2>&1
# SysVinit
elif command -v update-rc.d >/dev/null 2>&1; then
    update-rc.d "{{{project.artifactId}}}" remove
fi

exit 0
