exec='/opt/mysql/mysql/bin/mysqld_safe --user=mysql' "mysql5.xml" 62 lines, 1608 characters [root at x4100-1:/var/tmp]svccfg validate mysql5.xml [root at x4100-1:/var/tmp]
That worked fine... exec='/opt/mysql/mysql/bin/mysqld_safe --user=mysql &' "mysql5.xml" 62 lines, 1613 characters [root at x4100-1:/var/tmp]svccfg validate mysql5.xml svccfg: couldn't parse document [root at x4100-1:/var/tmp] Didn't work... *sigh* On Nov 13, 2007 6:01 PM, Renaud Manus <Renaud.Manus at sun.com> wrote: > > -------- Original Message -------- > Subject: [smf-discuss] svccfg fails import on '&' char > From: Louwtjie Burger <zabermeister at gmail.com> > To: smf-discuss at opensolaris.org > Date: Tue Nov 13 2007 12:24:53 GMT+0100 (CET) > > > Hi > > > > (Solaris 10 11/06) > > > > I cannot validate or import a xml that contains '&' in the start field. > > > > <exec_method > > type='method' > > name='start' > > exec='/opt/mysql/mysql/bin/mysqld_safe --user=mysql &' > > timeout_seconds='60'> > > <method_context> > > <method_credential user='root' /> > > </method_context> > > </exec_method> > > > > If I remove the '&' it works, however the startup method doesn't work > > and svcs -x reports it as errored. > > _______________________________________________ > > smf-discuss mailing list > > smf-discuss at opensolaris.org > > It doesn't work because it is not supposed to work like that for a > 'contract' type service. > Your start method should call a script which launches mysqld_safe in > background and then returns. > > You will find some examples of mysql converted into SMF at: > http://opensolaris.org/os/community/smf/manifests/ > > -- Renaud >