pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49769: SMF support in "mysql*-server" depends on project "mysql"



>Number:         49769
>Category:       pkg
>Synopsis:       SMF support in "mysql*-server" depends on project "mysql"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 21 19:45:00 +0000 2015
>Originator:     Matthias Scheler
>Release:        SunOS 5.10
>Organization:
Matthias Scheler                                 https://zhadum.org.uk/
>Environment:
System: SunOS hagrid.haus-gisela.de 5.10 Generic_150400-22 sun4u sparc SUNW,Sun-Fire-280R
Architecture: sparc
Machine: sun4u

>Description:
After installing and enabling the "mysql56-server" package on a
Solaris 10 SPARC system the service doesn't come up:

# svcs -a|grep -i pkgsr
[...]
maintenance    19:54:39 svc:/pkgsrc/mysql:default

The logfile reveals the cause:

# svcs -l svc:/pkgsrc/mysql:default
fmri         svc:/pkgsrc/mysql:default
name         MySQL RDBMS
enabled      true
state        maintenance
next_state   none
state_time   Sat Mar 21 19:54:39 2015
logfile      /var/svc/log/pkgsrc-mysql:default.log
restarter    svc:/system/svc/restarter:default
contract_id
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   require_all/none svc:/network/loopback (online)

# cat /var/svc/log/pkgsrc-mysql:default.log
[ Mar 21 19:18:37 Disabled. ]
[ Mar 21 19:18:37 Rereading configuration. ]
[ Mar 21 19:47:32 Rereading configuration. ]
[ Mar 21 19:54:39 Enabled. ]
[ Mar 21 19:54:39 Executing start method ("/opt/pkg/lib/svc/method/mysqld start") ]
svc.startd could not set context for method: setproject: No such process
[ Mar 21 19:54:39 Method "start" exited with status 96 ]

There is no project "mysql" under Solaris by default. And the installtion
of the package doesn't seem to create one.

>How-To-Repeat:
cd pkgsrc/database/mysql56-server
bmake install
svcadm enable svc:/pkgsrc/mysql:default
svcs -a | grep pkgsrc

>Fix:
Manually running "projadd -U mysql mysql" works around the problem.



Home | Main Index | Thread Index | Old Index