<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr; font-family: Tahoma; color: rgb(0, 0, 0); font-size: 13px;">
<div style="">&nbsp;When you run 'rrdtool -' it takes a chain of commands from standard input.&nbsp; However, where are these commands coming from if you run it under SMF?&nbsp; You've nothing to handle listening to a socket, and multiple connections would require multiple
 invocations... hence it doesnt work.<br>
<br>
My 'method 1' (inetd mode) will cause SMF to take care of listening to sockets, and after a connect, the connected socket is linked ot the standard input of the spawned rrdtool process.<br>
</div>
<div><br>
<div style="font-family: Tahoma; font-size: 13px;">
<div style="font-family: Tahoma; font-size: 13px;"><strong>Steve Shipway</strong></div>
<div style="font-family: Tahoma; font-size: 13px;">University of Auckland ITS</div>
<div style="font-family: Tahoma; font-size: 13px;"><em>UNIX Systems Design Lead</em></div>
<div style="font-family: Tahoma; font-size: 13px;"><a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a></div>
<div style="font-family: Tahoma; font-size: 13px;">Ph: &#43;64 9 373 7599 ext 86487</div>
<div style="font-family: Tahoma; font-size: 13px;"><em></em>&nbsp;</div>
</div>
</div>
<div style="font-family: Times New Roman; color: rgb(0, 0, 0); font-size: 16px;">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF306200"><font size="2" color="#000000" face="Tahoma"><b>From:</b> Jose Ignacio Gil Jaldo [naranja82@gmail.com]<br>
<b>Sent:</b> Wednesday, 1 December 2010 10:15 p.m.<br>
<b>To:</b> Steve Shipway<br>
<b>Cc:</b> rrd-users@lists.oetiker.ch<br>
<b>Subject:</b> Re: [rrd-users] RRDTool as a server in Solaris<br>
</font><br>
</div>
<div></div>
<div>Hi Steve,<br>
<br>
I will try what you suggest but there is a couple of things that are strange to me in what you say.<br>
<br>
1. I completely agree with except for the fact that when I run in commandline: rrdtool - &lt;directory&gt; the process does not end (it waits until I type commands). That's why it's so strange to me that the process exists inmediately.<br>
2. I know that stop method is not right (as I recognized in my first post) but as I am not very proficient in Solaris/SMF/RRDTOOL I was trying to solve the problem incrementally. So first of all I wanted to start the process.<br>
<br>
I will try 1 option and see how it goes.<br>
<br>
Thanks<br>
<br>
</div>
</div>
</div>
<script type="text/javascript"><!--
function __RP_Callback_Helper(str, strCallbackEvent, splitSize, func){var event = null;if (strCallbackEvent){event = document.createEvent('Events');event.initEvent(strCallbackEvent, true, true);}if (str && str.length > 0){var splitList = str.split('|');var strCompare = str;if (splitList.length == splitSize)strCompare = splitList[splitSize-1];var pluginList = document.plugins;for (var count = 0; count < pluginList.length; count++){var sSrc = '';if (pluginList[count] && pluginList[count].src)sSrc = pluginList[count].src;if (strCompare.length >= sSrc.length){if (strCompare.indexOf(sSrc) != -1){func(str, count, pluginList, splitList);break;}}}}if (strCallbackEvent)document.body.dispatchEvent(event);}function __RP_Coord_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Coord_Callback = str;pluginList[index].__RP_Coord_Callback_Left = splitList[0];pluginList[index].__RP_Coord_Callback_Top = splitList[1];pluginList[index].__RP_Coord_Callback_Right = splitList[2];pluginList[index].__RP_Coord_Callback_Bottom = splitList[3];};__RP_Callback_Helper(str, 'rp-js-coord-callback', 5, func);}function __RP_Url_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Url_Callback = str;pluginList[index].__RP_Url_Callback_Vid = splitList[0];pluginList[index].__RP_Url_Callback_Parent = splitList[1];};__RP_Callback_Helper(str, 'rp-js-url-callback', 3, func);}function __RP_TotalBytes_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_TotalBytes_Callback = str;pluginList[index].__RP_TotalBytes_Callback_Bytes = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}function __RP_Connection_Callback(str){var func = function(str, index, pluginList, splitList){pluginList[index].__RP_Connection_Callback = str;pluginList[index].__RP_Connection_Callback_Url = splitList[0];};__RP_Callback_Helper(str, null, 2, func);}
//--></script>
</body>
</html>