Middle
How to find a process that periodically runs on a server (not as a systemd unit)?
sobes.tech AI
Answer from AI
To find a process that periodically runs on the server but not as a systemd unit, you can:
- Check task schedulers:
crontab -lfor the current user andsudo crontab -lfor root.- Files in
/etc/cron.*and/var/spool/cron/.
- Use
psortopto monitor processes and look for recurring launches. - Check scripts and tasks in
at(atqfor the list). - Use
auditdorsystemtapto track process launches. - Check logs, such as
/var/log/syslogor/var/log/messages, for entries about process launches.
Example command to search in cron:
grep -r '' /etc/cron* /var/spool/cron