Changes of Revision 12
[-] [+] | Changed | exabgp.spec |
[-] [+] | Changed | exabgp-suse.init ^ |
@@ -22,6 +22,12 @@ case "$1" in start) + if [ -n "${ENVDIR}" ] ; then + PIDDIR=`grep ^pid /usr/share/exabgp/etc/exabgp.env | awk '{print "dirname " $NF}'|sh` + USER=`grep ^user /usr/share/exabgp/etc/exabgp.env | awk '{print $NF}'|sed -e s@[\'\"]@@g` + mkdir -p ${PIDDIR} + chown -R ${USER} ${PIDDIR} + fi echo -n "Starting $prog: " $exabgp $config ${OPTIONS} rc_status -v |