Page 1 of 1

service: command not found

Posted: Tue Nov 01, 2016 2:35 pm
by ProPuke
Hi There. Debian 7.11 here.

I seem to be receiving emails of this effect at the start of every month:
/usr/local/vesta/bin/v-restart-web: line 21: service: command not found
Can anyone help?

I would guess this script is likely being ran as the wrong user, or the user needs `/usr/sbin` added to their path?

Any advice is appreciated :] Thanks

Re: service: command not found

Posted: Tue Nov 01, 2016 4:29 pm
by mehargags
There may be a cron job left accidentally.

can you paste your cron list ?

from ssh, login as admin and do:

Code: Select all

crontab -l
or if you have multiple vestaCP users then issue as root this command for each user

Code: Select all

crontab -u userName -l