|
From: Bruno C. <Bru...@hp...> - 2008-01-31 06:31:25
|
Hello,
Bruno Cornec said on Fri, Dec 21, 2007 at 12:28:16PM +0100:
> I think I found why my packages didn't work correctly during my recent
> LinuxCOE Lab. It seems that now the scratch_monkey dir isn't created
> when we use --without-APACHE, which isn't correct for the package now.
Thanks to Bryan and Lee hard work, I now have much more clean rpm.
However, I have a last (for the moment) remaining issue:
# rpm -Uvh --force
# /home/bruno/LinuxCOE/build/RPMS/noarch/linuxcoe-sd-base-4.1-1.mdv2007.0.noarch.rpm
Préparation... ########################################### [100%]
1:linuxcoe-sd-base ########################################### [100%]
LinuxCOE SystemDesigner integration tasks
creating link : /var/www/linuxcoe-sd/linuxcoe.rc
Apache-specific integration tasks
creating link : /etc/httpd/conf.d/LinuxCOE-SystemDesigner.conf
NOTE : Apache web server should now be restarted
NOTE : for this modified configuration to take effect.
/var/www/linuxcoe-sd/bin/post-actions: line 300: SKIP: command not found
SKIP restart
sudo-specific integration tasks
Reloading httpd: [ OK ]
So looking at the post-action script generated I found:
# restart apache, for either install/uninstall cases
test -n "$VERBOSE" && {
echo "NOTE : Apache web server should now be restarted"
echo "NOTE : for this modified configuration to take effect."
}
if test "x${APACHE2CTL}" = "xNA" -o "x${APACHE2CTL}" = "xNONE"; then
if type apache2ctl >/dev/null 2>&1; then
apache2ctl restart
fi
else
${APACHE2CTL} restart
fi
if test "x${APACHECTL}" = "xNA" -o "x${APACHECTL}" = "xNONE"; then
if type apachectl >/dev/null 2>&1; then
apachectl restart
fi
else
echo ${APACHECTL} restart
fi
So I think there is a mismatch between the echo for ${APACHECTL} and
lack of echo for ${APACHE2CTL} which seems to cause the error message.
However, I don't know why we would want to echo SKIP restart ;-)
So close ... !!
Bruno.
--
Linux Profession Lead EMEA / Open Source Evangelist \ HP C&I EMEA IET
http://www.mondorescue.org / HP/Intel Solution Center \ http://hpintelco.net
Des infos sur Linux? http://www.HyPer-Linux.org http://www.hp.com/linux
La musique ancienne? http://www.musique-ancienne.org http://www.medieval.org
|