New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sysstat service under systemd #328
Comments
Hi, what distro is the embedded device using, and what issue / error message are you encountering ? |
hi :) removing the the hope is to use the output logs and run the above sysstat as a service with an implemented timer that has enabled status, so the log may be incremented. |
Hi
And the contents of the
|
Thank you for the above clarification. :) I modified to the above ExecStart and the output is a oneshot like the service states, though my hope is to also have the data occur everyone X time based on a timer. The timer is below, and the status of However, the data outputs to
|
are we able to log to a specific directory with the systemd timer? |
In fact I don't understand why you don't let sysstat do all the work for you (creating the systemd units, etc.)...?
In the example above, sadc will run once every 5 minutes and log its data to
The directory where logs will be saved can also be specified in the |
Cron does not appear to be an option for me to use with this setup and only systemd is available... is cron recommended or needed with custom directories, or in general? The sysstat environment is being configured from Yocto and the configuration file has the line SA_DIR=/my/log/dir for the build environment to customize the log path, but we are not using cron. |
sysstat uses systemd by default when available. systemd is the preferred way over crond to start sadc periodically, and as a consequence, crond is not needed for sysstat to work. |
Hi @sysstat Since sysstat uses systemd by default, I think it would be better to change the |
@ViggoC So if I understand well, one should enter
on a Debian machine running |
@sysstat My release version is |
Editing "/etc/default/sysstat" doesn't work on Debian-based machines using systemd. See #328 Signed-off-by: Sebastien GODARD <[email protected]>
README file has been updated (see commit a254dbf). |
hi sysstat team!
is there a way to run sysstat on an embedded device with systemd only? the apt env is not available to me currently
`[Unit]
Description=Testing Sysstat For now
[Service]
Type=oneshot
RemainAfterExit=yes
User=myuserid
ExecStart=/usr/bin/sar -A -D 1 1 --boot
[Install]
WantedBy=multi-user.target
`
much appreciate any assistance... and if this is the wrong forum, i can take this to another forum... thank you! :)
The text was updated successfully, but these errors were encountered: