pkgrm and the Solaris 10 service manifest

From: Christopher L. Barnard (cbar44@tsg.cbot.com)
Date: Mon Oct 02 2006 - 13:31:20 EDT


I am building the latest OpenSsh, and I am making use of their
"make package" feature that builds the necessary files to add the service
into the svc manifest under Solaris 10. It seems to work fine:

[ mmmtst4!/root ] >> svcs ssh openssh
STATE STIME FMRI
disabled 11:57:01 svc:/network/ssh:default
online 12:19:08 svc:/site/openssh:default

I went ahead and removed the five packages that consist of the Sun SSH:

system SUNWsshcu SSH Common, (Usr)
system SUNWsshdr SSH Server, (Root)
system SUNWsshdu SSH Server, (Usr)
system SUNWsshr SSH Client and utilities, (Root)
system SUNWsshu SSH Client and utilities, (Usr)

However, removing SUNWsshdr fails because it thinks the service is still
enabled:

[ mmmtst4!/root ] >> pkgrm SUNWsshdr

The following package is currently installed:
   SUNWsshdr SSH Server, (Root)
              (sparc) 11.10.0,REV=2005.01.21.15.53

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance <SUNWsshdr>
(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 <SUNWsshdr> dependencies in global zone
## Processing package information.
## Removing pathnames in class <manifest>
svc:/network/ssh:default remains enabled; aborting
pkgrm: ERROR: class action script did not complete successfully

Removal of <SUNWsshdr> failed.

Any ideas about how to convice the system that svc:/network/ssh:default
is really disabled?

+-----------------------------------------------------------------------+
| Christopher L. Barnard O When I was a boy I was told that |
| cbarnard@tsg.cbot.com / \ anybody could become president. |
| (312) 347-4901 O---O Now I'm beginning to believe it. |
| http://www.cs.uchicago.edu/~cbarnard --Clarence Darrow |
+----------PGP public key available via finger or PGP keyserver---------+
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:40:55 EDT