diff --git a/tools/init.d/template b/tools/init.d/template index 43355578c03..cc5a66697cb 100755 --- a/tools/init.d/template +++ b/tools/init.d/template @@ -20,6 +20,7 @@ CRONFILE=/etc/cron.d/@CRONFILE@ [ -x $BINDIR/$PROGRAM ] || exit 0 CNFFILE=$SYSCONFDIR/config.xml +CONFFILE=$SYSCONFDIR/config.conf PIDFILE=$PIDDIR/$PROGRAM.pid LOCKFILE=$LOCALSTATEDIR/$PROGRAM RETVAL=0 @@ -56,6 +57,8 @@ start() chown -R $USER:$GROUP $LOGDIR chown -R $USER:$GROUP $PIDDIR + xsltproc /usr/local/lib/short2old.xsl $CONFFILE | xmlstarlet fo -t > $CNFFILE + [ $? -ne 0 ] && echo FAILED && exit 1 su -l $USER -s $SHELL -c "\"$BINDIR/$PROGRAM\" --daemon --pid-file=\"$PIDFILE\" --config-file=\"$CNFFILE\"" EXIT_STATUS=$? fi