[rrd-users] RRDTool as a server in Solaris

Jose Ignacio Gil Jaldo naranja82 at gmail.com
Tue Nov 30 13:03:40 CET 2010


Hi,

I'm very new to Solaris and to rrdtool, but in my company we've been using
rrdtool in linux without any problem.

Anyway, I'm trying deploy it in a solaris 10 machine and I am not being able
to start it as a server.

I have created a SMF to start it but it seems to go down. The SMF is:

<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM
'/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
  <service name='rrdtool' type='service' version='0'>
    <create_default_instance enabled='true'/>
    <single_instance/>
 <instance name='rrdtool' enabled='false'>
                <exec_method
                        type='method'
                        name='start'
                        exec='/opt/csw/bin/rrdtool - <Directory>'
                        timeout_seconds='0'>
                </exec_method>
                <exec_method
                        type='method'
                        name='stop'
                        exec='kill -9 blabla'
                        timeout_seconds='30'>
                </exec_method>
        </instance>
  </service>
</service_bundle>

where <Directory> is the place where I want to leave the statistics.
However, when I try to start it using: svcadm enable rrdtool:rrdtool

I get the following log:
/usr/bin/kill[8]: blabla: Arguments must be %job or process ids
[ Nov 30 11:42:55 Method "stop" exited with status 1 ]
[ Nov 30 11:50:44 Leaving maintenance because disable requested. ]
[ Nov 30 11:50:44 Disabled. ]
[ Nov 30 11:50:47 Enabled. ]
[ Nov 30 11:50:47 Executing start method ("/opt/csw/bin/rrdtool -
/opt/synchronica/synchronica/demo-server/statistics") ]
[ Nov 30 11:50:47 Method "start" exited with status 0 ]
[ Nov 30 11:50:47 Stopping because all processes in service exited. ]
[ Nov 30 11:50:47 Executing stop method ("kill -9 blabla") ]
/usr/bin/kill[8]: blabla: Arguments must be %job or process ids
[ Nov 30 11:50:47 Method "stop" exited with status 1 ]
[ Nov 30 11:50:47 Executing stop method ("kill -9 blabla") ]
/usr/bin/kill[8]: blabla: Arguments must be %job or process ids
[ Nov 30 11:50:47 Method "stop" exited with status 1 ]
[ Nov 30 11:50:47 Executing stop method ("kill -9 blabla") ]
/usr/bin/kill[8]: blabla: Arguments must be %job or process ids
[ Nov 30 11:50:47 Method "stop" exited with status 1 ]

Also if I run that command in command-line it does not end inmediately and I
can run commands.

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?

Thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20101130/f5bc9feb/attachment.htm 


More information about the rrd-users mailing list