Improve init error message when FS is unconfigured

Depending on which packages are installed, the README.Debian file
might not be there, so we'll spell out the instructions more directly.
This commit is contained in:
Travis Cross 2014-11-06 16:30:44 +00:00
parent 1190e59adf
commit b0050f519e
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ WORKDIR=/var/lib/$NAME
do_start() {
if ! [ -f $CONFDIR/freeswitch.xml ]; then
echo "$NAME is not configured so not starting.">&2
echo "Please review /usr/share/doc/$NAME/README.Debian">&2
echo "Please add configuration under /etc/freeswitch">&2
echo "e.g. Install freeswitch-conf-vanilla, then:">&2
echo "cp -a /usr/share/freeswitch/conf/vanilla /etc/freeswitch">&2
return 3
fi