[SOLVED] cron - Could not open the configuration file citmp-server.yml

The server does not start with cron
the script log says Could not open the configuration file citmp-server.yml
But if i go through ssh and run the run.sh script, it works fine ?

can anyone help ?
cron values

* */6 * * * sh /root/gta/run.sh >> /root/script_output.log
@reboot  sh /root/gta/run.sh >> /root/script_output.log
@daily  sh /root/gta/run.sh >> /root/script_output.log

I’m no expert in cron jobs so, someone else will probably be able to help you better.

It sounds like the shell script isn’t being executed in the server directory (where the YML file is located).

Basically, add a cd /path/to/server before executing the script :slight_smile:

you mean like

@daily cd/root/gta/ sh /root/gta/run.sh >> /root/script_output.log

sorry, but im used to 2016 win servers, this is literally my first time using a linux vps

Think the command would be something like

@daily cd /path/to/server && sh run.sh >> output.log

It worked, thanks havoc <3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.