[csw-users] Missing /etc/init.d/cswapache2 file

Paul N. Youngblood youngbp at email.uah.edu
Mon Mar 5 21:55:37 CET 2007


Hi Cory,

Yes, putting "#!/bin/sh" at the top of the text file worked
perfectly, thank you!   This  means all of these CSW packages
have been removed: apache2c, apache2rt, apache2, and ap2prefork.
However, I still had to manually remove the "bogus" text file
"/etc/init.d/cswapache2" and the symbolic links to it in the
/etc directories rc0.d, rc1.d, rc2.d, rc3.d, and rcS.d.

Finally, to start all over, I ran "pkg-get install apache2" which
installed ap2prefork, apache2rt, and apache2, but could only
partially install apache2c.  Here is the error (which you can see in
proper context in the abbreviated screen output log which follows:

ERROR: attribute verification of </etc/init.d/cswapache2> failed
        pathname does not exist.

I'm not sure what this means.  Why won't the install of apache2c
create cswapache2 in /etc/init.d?   The directory certainly exists
and the install re-created all the symbolic links, but these links
point to a file which is not there:

bsh# ls -ld /etc/init.d
drwxr-xr-x   2 root     sys         2048 Mar  5 12:26 /etc/init.d
bsh# ls -oR /etc | grep cswapache2
lrwxrwxrwx   1 root     20 Mar  5 12:56 K16cswapache2 ->
                                                 ../init.d/cswapache2
lrwxrwxrwx   1 root     20 Mar  5 12:56 K16cswapache2 ->
                                                 ../init.d/cswapache2
lrwxrwxrwx   1 root     20 Mar  5 12:56 K16cswapache2 ->
                                                 ../init.d/cswapache2
lrwxrwxrwx   1 root     20 Mar  5 12:56 S50cswapache2 ->
                                                 ../init.d/cswapache2
lrwxrwxrwx   1 root     20 Mar  5 12:56 K16cswapache2 ->
                                                 ../init.d/cswapache2
bsh#


Thank you for all your help on this, Cory.  I appologize for taking
up your time.
Paul Youngblood


=========== Begin abbreviated output log ====================
bsh# pkg-get install apache2
No existing install of CSWapache2 found. Installing...
Trying ftp://ftp.math.purdue.edu/mirrors/blastwave.org/unstable/sparc/5.9/
                      apache2-2.2.4,REV=2007.02.19-SunOS5.8-all-CSW.pkg.gz
<><><> skipped lines <><><>

Analysing special files...
Trying to install dependancy apache2c
No existing install of CSWapache2c found. Installing...
<><><> skipped lines <><><>

Analysing special files...
Hmmm. Retrying with different archive offset...4217 blocks
Trying to install dependancy apache2rt
No existing install of CSWapache2rt found. Installing...
<><><> skipped lines <><><>

Installation of <CSWapache2rt> was successful.
<><><> skipped lines <><><>

Installing apache2c - Apache 2.2 web server (core) as <CSWapache2c>
<><><> skipped lines <><><>

/opt/csw/apache2/share/icons/world2.gif
/opt/csw/apache2/share/icons/world2.png
[ verifying class <none> ]
/etc/rc0.d/K16cswapache2 <symbolic link>
/etc/rc1.d/K16cswapache2 <symbolic link>
/etc/rc2.d/K16cswapache2 <symbolic link>
/etc/rc3.d/S50cswapache2 <symbolic link>
/etc/rcS.d/K16cswapache2 <symbolic link>
[ verifying class <init> ]
ERROR: attribute verification of </etc/init.d/cswapache2> failed  <--<<<<
     pathname does not exist                                       <--<<<<
## Executing postinstall script.
Checking configuration files:
Creating /opt/csw/apache2/etc/httpd.conf from template
Creating /opt/csw/apache2/etc/extra/httpd-ssl.conf from template
Copying CSW templates:
   creating /opt/csw/apache2/share/htdocs/index.html
<><><> skipped lines <><><>
   creating /opt/csw/apache2/etc/mime.types

Installation of <CSWapache2c> partially failed.                   <--<<<<
ERROR: could not add CSWapache2c.                                 <--<<<<
Trying to install dependancy ap2_prefork
No existing install of CSWap2prefork found. Installing...
<><><> skipped lines <><><>

Installation of <CSWap2prefork> was successful.
<><><> skipped lines <><><>

Installation of <CSWapache2> was successful.
bsh#
==============================================================

On Sun, 4 Mar 2007, Cory Omand wrote:

> On 3/4/07, Paul N. Youngblood <youngbp at email.uah.edu> wrote:
>> 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:
>
> Ok, now I see.  If you add #!/bin/sh or something similar to the top
> of your empty cswapache2 file, and make it executable, it should allow
> you to remove the package.
>
> - C.
> _______________________________________________
> users mailing list
> users at lists.blastwave.org
> https://lists.blastwave.org/mailman/listinfo/users
>



More information about the users mailing list