из мета-конфигов с уменьшенной зависимостью от номера кластера строятся конфиги старого формата (#CONV-1053)

This commit is contained in:
Maxim Nikulin 2010-10-04 21:51:18 +00:00
parent 614f49533e
commit e2ac3c2fa0

View File

@ -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