• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Cron Job

J

JDwebsites

Guest
I am trying to run a cron job under root and I am getting this error message:
/bin/sh: line 1: service: command not found

The cron job is:
service --status-all | grep spamd

Can you not run service in a cron job?
 
I would try specifying the exact path to the service command
(/sbin/service --status-all | grep spamd)
 
Back
Top