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

Paul N. Youngblood youngbp at email.uah.edu
Sun Mar 4 23:58:46 CET 2007


Thank you very much for the information and help Cory.  I must
have somehow deleted my /etc/init.d/cswapache2 file.

When I run the commands you illustrated:
     bash$ pkginfo -x CSWapache2 CSWapache2c
     bash$ pkgchk -l -p /etc/init.d/cswapache2
I get the exact same output you did.  Do you know if there
is a way to "start over" and do a fresh install?  In an
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:

    bsh# pkg-get -r apache2c
    WARNING:  the remove option is not very intelligent.
    If there are multiple versions of a package with the same
    PKG style name, it will remove the first one it can
    (will continue in 5 seconds)
    Starting remove operations now...

    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.)
    ## Processing package information.
    ## Executing preremove script.
    chroot: No such file or directory
    pkgrm: ERROR: preremove script did not complete successfully

    Removal of <CSWapache2c> failed.
    bsh#

I'd be greatful for any direction you might provide.
Paul Youngblood

-----------------------------------------------------------
On Sat, 3 Mar 2007, Cory Omand wrote:

> On 3/3/07, Cory Omand <comand at blastwave.org> wrote:
>> On 3/3/07, Paul N. Youngblood <youngbp at email.uah.edu> wrote:
>>> I seem to be missing a small text file that is supposed
>>> to be part of the apache2 package.  I'm running
>>> Solaris 9 (sparc).  The "pkg-add -i apache2" commandO
>>> seemed to work just fine, and the apache2 server works
>>> without problems. 
>>>
>>> The missing file is "/etc/init.d/cswapache2".  I assume
>>> it is a small text file.  Would someone send it to me
>>> via e-mail or suggest a way for me to obtain it, please?
>>
>> Hi Paul,
>>
>> If you're running Solaris 10, cswapache2 won't be installed, and you
>> can use svcadm to manage the cswapache2 service.
>>
>
> Apologies -- just re-read your message, and saw that you're actually
> running Solaris 9.  There is no reason why cswapache2 wouldn't be
> there... I verified that it's part of the package, as installed on our
> build servers:
>
> bash$ pkginfo -x CSWapache2 CSWapache2c
> CSWapache2            apache2 - Apache 2.2 web server
>                      (all) 2.2.4,REV=2007.02.19
> CSWapache2c           apache2c - Apache 2.2 web server (core)
>                      (sparc) 2.2.4,REV=2007.02.19
> bash$
> bash$ pkgchk -l -p /etc/init.d/cswapache2
> Pathname: /etc/init.d/cswapache2
> Type: editted file
> Expected mode: 0755
> Expected owner: root
> Expected group: bin
> Referenced by the following packages:
>        CSWapache2c
> Current status: installed
>
> - C.
> _______________________________________________
> users mailing list
> users at lists.blastwave.org
> https://lists.blastwave.org/mailman/listinfo/users
>



More information about the users mailing list