<br /><span>Am 26.09.14 schrieb <b class="name">Laurent Blume </b> <laurent@opencsw.org>:</span><blockquote cite="mid:54258493.5010500@opencsw.org" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimepart text plain">I will look into it.<br />For now, be careful that I'm going to push a new package that will overwrite it (now that MySQL works, the MySQL packages could be created :-)<br /><br />My first idea is that it could be handled automatically, following this rough outline:<br />  - CSW package installs cswservice:default<br />  - users can create cswservice:otherinstance if they wish<br />  - on package removal, cswservice:* are handled by CAS (instead of just the :default)<br />  - so on updates, all are stopped/restarted. Only :default is updated, the others stay of course the responsibility of their creators<br /><br />Makes sense?</div></blockquote>Yes, this sounds good.<br /><blockquote cite="mid:54258493.5010500@opencsw.org" class="iwcQuote" style="border-left: 1px solid #00F; padding-left: 13px; margin-left: 0;" type="cite"><div class="mimepart text plain"><br /><br />Laurent<br /><br />Le 2014/09/26 16:15 +0200, Carsten Grzemba a écrit:<br />>mysql trac is online again.<br />><br />>I have changed /etc/opt/csw/init.d/cswmysql5 for support instances:<br />><br />>root@mysql [mysql]:/etc/opt/csw/init.d > diff cswmysql5.org cswmysql5<br />>41c41,42<br />>< datadir=<br />>---<br />> > datadir=`/bin/svcprop -p config/datadir ${SMF_FMRI} 2>/dev/null`<br />> > defaults=`/bin/svcprop -p config/defaults ${SMF_FMRI} 2>/dev/null`<br />>293a295,299<br />> > if [ ! -z "$defaults" ]<br />> > then<br />> >     defaults_args="--defaults-file=$defaults"<br />> >     extra_args="$defaults_args $extra_args"<br />> > fi<br />>323c329<br />><       $bindir/mysqld_safe --datadir="$datadir"<br />>--pid-file="$mysqld_pid_file_path" $other_args >/dev/null 2>&1 &<br />>---<br />> >       $bindir/mysqld_safe $defaults_args --datadir="$datadir"<br />>--pid-file="$mysqld_pid_file_path" $other_args >/dev/null 2>&1 &<br />><br />>I don't if it is the best place for do this but this kind is a usual way.<br />>@ Laurent: what do you mean, would you incorporate this script change in<br />>your package?<br />><br />>Am 26.09.14 schrieb *Jan Holzhueter * <jh@opencsw.org>:<br />>>Hi,<br />>>had some time to debug it :)<br />>><br />>>Simple problem someone somehow updated the mysql Packege on our mysql<br />>>zone.<br />>><br />>>That caused an update from Mysql Version 5.0 to 5.5 (all praise whom<br />>>they like that this did not cause any database problems )<br />>><br />>>But with this the my.cnf file moved from /opt/csw/mysql5 to /etc/opt/csw<br />>>but without any migration script. So some default was loaded with did<br />>>not fit our environment. I fixed that now.<br />>>It should not give those errors anymore I hope.<br />>><br />>>@Carsten your mysql trac database needs to be looked at. To do the<br />>>update the cswmysql5:trac Service is broken now and starts not your<br />>>database anymore. I disabled it for now. If you have the time please<br />>>fix it.<br />>><br />>>Greetings<br />>>Jan<br />>><br />>><br /><br /><br /><br /></div></blockquote>