From Newsgroup: alt.os.linux.slackware
On 2026-09-04, jayjwa wrote:
... Why not leave the start/stop script as it is, and just create
a script to graph the collected data?
Because it doesn't work. No data is collected by the stock one that
ships. ...
...
12:34:05 PM LINUX RESTART (8 CPU) <-- stock restart here
...
The stock rc.sysstat does nothing but write a restart record.
You're right. That's exactly what it does: calls "/usr/lib/sa/sa1
--boot", which according to the manual page,
--boot This option tells sa1 that the sadc command should
be called without specifying the interval and count
parameters in order to insert a dummy record, marking
the time when the counters restart from 0.
Well, I apologize, then, for the dumb question. I agree that it would
be better to have the start/stop script start the data collector
*running*, perhaps with a "restart" mark first, and a configurable
interval. When I call "/etc/rc.d/rc.${something} start", it seems
to me that the intuitive result is that ${something} is running when
that script exits.
--
----------------------------------------------------------------------
Sylvain Robitaille
syl@therockgarden.ca ----------------------------------------------------------------------
--- Synchronet 3.22a-Linux NewsLink 1.2