[csw-users] Missing /etc/init.d/cswapache2 file
Paul N. Youngblood
youngbp at email.uah.edu
Mon Mar 5 04:27:04 CET 2007
Running pkgchk on SUNWcsu indicates nothing wrong on my system.
I think that /usr/sbin/chroot is complaining that I don't have
the /etc/init.d/cswapache2 file. Here is what I get when I
use the pkgrm command directly:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bsh# pkgrm -v CSWapache2c
The following package is currently installed:
CSWapache2c apache2c - Apache 2.2 web server (core)
(sparc) 2.2.4,REV=2007.02.19
Do you want to remove this package? [y,n,?,q] y
## Removing installed package instance <CSWapache2c>
(A previous attempt may have been unsuccessful.)
This package contains scripts which will be executed with super-user
permission during the process of removing this package.
Do you want to continue with the removal of this package [y,n,?,q] y
## Verifying package dependencies.
## Processing package information.
## Executing preremove script.
+ [ -z ]
PKG_INSTALL_ROOT=/
STATE_FILE=//var/tmp/CSWapache2c.smfinfo
+ rm -f //var/tmp/CSWapache2c.smfinfo
+ [ -f //usr/sbin/svccfg -a -f //usr/sbin/svcadm ]
+ chroot / /etc/init.d/cswapache2 stop <-----<<<<<
chroot: No such file or directory <-----<<<<<
pkgrm: ERROR: preremove script did not complete successfully
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
But when I copy an arbitrary text file to /etc/init.d/cswapache2
and give it proper owner, group, and permissions as indicated in
this listing ...
bsh# ls -l /etc/init.d | grep csw
-rwxr-xr-x 1 root bin 3712 Mar 4 21:09 cswapache2
-rwxr-xr-x 2 root bin 678 Nov 4 2005 cswfconfig
-rwxr-xr-x 6 root bin 6539 Mar 1 21:24 cswmysql
-rwxr-xr-x 6 root bin 6545 Mar 1 21:46 cswmysql5
-rwxr-xr-x 6 root bin 5411 Mar 1 21:23 cswopenldap
bsh#
... and then run "pkgrm -v CSWapache2c" again, I get this:
## Verifying package dependencies.
## Processing package information.
## Executing preremove script.
+ [ -z ]
PKG_INSTALL_ROOT=/
STATE_FILE=//var/tmp/CSWapache2c.smfinfo
+ rm -f //var/tmp/CSWapache2c.smfinfo
+ [ -f //usr/sbin/svccfg -a -f //usr/sbin/svcadm ]
+ chroot / /etc/init.d/cswapache2 stop
chroot: Exec format error
pkgrm: ERROR: preremove script did not complete successfully
Removal of <CSWapache2c> failed.
------------------------------------------------------------
On Sun, 4 Mar 2007, Cory Omand wrote:
> On 3/4/07, Paul N. Youngblood <youngbp at email.uah.edu> wrote:
>> effort to do just that, I used "pkg-get -r" to successfully
>> remove ap2_prefork, apache2rt, and apache2. But I get the
>> following in attempting removal apache2c:
> [...]
>> ## Removing installed package instance <CSWapache2c>
>> (A previous attempt may have been unsuccessful.)
>> ## Processing package information.
>> ## Executing preremove script.
>> chroot: No such file or directory
>> pkgrm: ERROR: preremove script did not complete successfully
>
> Well, it's strange for chroot to not be on your system somewhere...
> usually /usr/sbin/chroot, part of SUNWcsu (core solaris)... You might
> check that it's actually installed. If it's not there, then your
> system is very inconsistent.
>
> - C.
> _______________________________________________
> users mailing list
> users at lists.blastwave.org
> https://lists.blastwave.org/mailman/listinfo/users
>
More information about the users
mailing list