mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
из мета-конфигов с уменьшенной зависимостью от номера кластера строятся конфиги старого формата (#CONV-1053)
This commit is contained in:
parent
614f49533e
commit
e2ac3c2fa0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user