Re: Application Server Update removes WO Startup scripts
Gerald Hanks <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
Hello All,
A quick peek in the ApplicationsServerUpdate.pkg shows where the
problem is.
Inside the package is a script called: WODeployment.post_script
This script is the one causing all the problems. As you can see from
the script that it deletes the /System/Library/StartupItems directory
all together
--SNIP--
...
startupdir="${NEXT_ROOT}System/Library/StartupItems/WebObjects"
...
if [ -d "${startupdir}" ]; then
# Remove existing startup directory
echo Removing existing $startupdir
/bin/rm -rf "${startupdir}"
fi
--SNIP--
It then goes about trying to create a new directory and startup files.
--SNIP--
# Create the wotaskd startup script
echo Creating $startupdir
/bin/mkdir "${startupdir}"
cp -f "$1/Contents/Resources/WebObjects" "${startupscript}"
chmod a+x "${startupscript}"
# Create the WebObjects startup plist
echo Creating $startupplist
cp -f "$1/Contents/Resources/StartupParameters.plist" "${startupplist}"
echo "WebObjects 5.2.2 Installer: Deployment Post Install script
completed:" `date`
--SNIP--
The problem is that the files that it needs to copy into the new
StartupItems/WebObjects folder do not exist in the package. A quick
look at the install log file confirms this fact:
--SNIP--
Mar 17 08:14:17 localhost softwareupdate: + echo Creating
/System/Library/StartupItems/WebObjects
Mar 17 08:14:17 localhost softwareupdate: Creating
/System/Library/StartupItems/WebObjects
Mar 17 08:14:17 localhost softwareupdate: + /bin/mkdir
/System/Library/StartupItems/WebObjects
Mar 17 08:14:17 localhost softwareupdate: + cp -f
/tmp/0/TemporaryItems/com.apple.SoftwareUpdate/
ApplicationsServerUpdate.pkg/Contents/Resources/WebObjects
/System/Library/StartupItems/WebObjects/WebObjects
Mar 17 08:14:17 localhost softwareupdate: cp:
Mar 17 08:14:17 localhost softwareupdate:
/tmp/0/TemporaryItems/com.apple.SoftwareUpdate/
ApplicationsServerUpdate.pkg/Contents/Resources/WebObjects: No such
file or directory
Mar 17 08:14:17 localhost softwareupdate: + chmod a+x
/System/Library/StartupItems/WebObjects/WebObjects
Mar 17 08:14:17 localhost softwareupdate: chmod:
Mar 17 08:14:17 localhost softwareupdate:
/System/Library/StartupItems/WebObjects/WebObjects: No such file or
directory
Mar 17 08:14:17 localhost softwareupdate: + echo Creating
/System/Library/StartupItems/WebObjects/StartupParameters.plist
Mar 17 08:14:17 localhost softwareupdate: Creating
/System/Library/StartupItems/WebObjects/StartupParameters.plist
Mar 17 08:14:17 localhost softwareupdate: + cp -f
/tmp/0/TemporaryItems/com.apple.SoftwareUpdate/
ApplicationsServerUpdate.pkg/Contents/Resources/StartupParameters.plist
/System/Library/StartupItems/WebObjects/StartupParameters.plist
Mar 17 08:14:17 localhost softwareupdate: cp:
/tmp/0/TemporaryItems/com.apple.SoftwareUpdate/
ApplicationsServerUpdate.pkg/Contents/Resources/
StartupParameters.plist: No such file or directory
--SNIP--
I contacted Apple to let them know about the problem and they said that
they would get back with me sometime tomorrow. I hope you all have a
good back from which to pull the files from. Otherwise good luck!!
-gerald
On Mar 17, 2004, at 1:01 PM, [email protected]
wrote:
> From: Brendan Duddridge <[email protected]>
> Date: March 16, 2004 11:48:13 PM MST
> To: WebObjects Admin <[email protected]>
> Subject: Application Server Update removes WO Startup scripts [was Re:
> Mac OS 10.3.3]
>
>
> I updated a new Xserve that hasn't gone into production yet and sure
> enough,
> the WebObjects startup scripts folder is now empty!
>
> Damn!
_______________________________________________
WebObjects-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-admin