exit $?
;;
restart)
- if is_yes $has_configtest ; then
+ if is_yes "$has_configtest" ; then
"$script" configtest || exit 1
fi
upstart_stop $name
if ! is_upstart_running "$name" ; then
exit 0
fi
- if is_yes $has_configtest ; then
+ if is_yes "$has_configtest" ; then
"$script" configtest || exit 1
fi
upstart_stop $name
exit $?
;;
reload)
- if is_yes $has_configtest ; then
+ if is_yes "$has_configtest" ; then
"$script" configtest || exit 1
fi
if is_upstart_task "$name" ; then
fi
;;
force-reload)
- if is_yes $has_configtest ; then
+ if is_yes "$has_configtest" ; then
"$script" configtest || exit 1
fi
if is_upstart_task "$name" ; then