Hi,<br><br>I'm very new to Solaris and to rrdtool, but in my company we've been using rrdtool in linux without any problem.<br><br>Anyway, I'm trying deploy it in a solaris 10 machine and I am not being able to start it as a server.<br>
<br>I have created a SMF to start it but it seems to go down. The SMF is:<br><br><?xml version='1.0'?><br><!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'><br><service_bundle type='manifest' name='export'><br>
<service name='rrdtool' type='service' version='0'><br> <create_default_instance enabled='true'/><br> <single_instance/><br> <instance name='rrdtool' enabled='false'><br>
<exec_method<br> type='method'<br> name='start'<br> exec='/opt/csw/bin/rrdtool - <Directory>'<br> timeout_seconds='0'><br>
</exec_method><br> <exec_method<br> type='method'<br> name='stop'<br> exec='kill -9 blabla'<br>
timeout_seconds='30'><br> </exec_method><br> </instance><br> </service><br></service_bundle><br><br>where <Directory> is the place where I want to leave the statistics. However, when I try to start it using: svcadm enable rrdtool:rrdtool<br>
<br>I get the following log:<br>/usr/bin/kill[8]: blabla: Arguments must be %job or process ids<br>[ Nov 30 11:42:55 Method "stop" exited with status 1 ]<br>[ Nov 30 11:50:44 Leaving maintenance because disable requested. ]<br>
[ Nov 30 11:50:44 Disabled. ]<br>[ Nov 30 11:50:47 Enabled. ]<br>[ Nov 30 11:50:47 Executing start method ("/opt/csw/bin/rrdtool - /opt/synchronica/synchronica/demo-server/statistics") ]<br>[ Nov 30 11:50:47 Method "start" exited with status 0 ]<br>
[ Nov 30 11:50:47 Stopping because all processes in service exited. ]<br>[ Nov 30 11:50:47 Executing stop method ("kill -9 blabla") ]<br>/usr/bin/kill[8]: blabla: Arguments must be %job or process ids<br>[ Nov 30 11:50:47 Method "stop" exited with status 1 ]<br>
[ Nov 30 11:50:47 Executing stop method ("kill -9 blabla") ]<br>/usr/bin/kill[8]: blabla: Arguments must be %job or process ids<br>[ Nov 30 11:50:47 Method "stop" exited with status 1 ]<br>[ Nov 30 11:50:47 Executing stop method ("kill -9 blabla") ]<br>
/usr/bin/kill[8]: blabla: Arguments must be %job or process ids<br>[ Nov 30 11:50:47 Method "stop" exited with status 1 ]<br><br>
Also if I run that command in command-line it does not end inmediately and I can run commands.<br><br>I know that kill -9 blablabla is not correct but it should not be executed (it is executed because the command ends). Any clue about the problem cause? Do I have to register something else anywhere?<br>
<br>Thanks a lot<br><br><br>