Softaculous


Topic : Webuzo STOP editing my CRONJOB


Posted By: foreverme on September 5, 2017, 4:21 pm
I'm tired of this!!
How do I prevent webuzo from editing my cron job?
Everytime webuzo updates or once in a while if it’s running. My cron job only keeps records of what was entered via webuzo gui web. Since that doesn’t support @reboot from cron job, I manually enter it and I have to keep webuzo service stopped by default in order to protect it. Ofc everytime I have to run an update it clears my @reboot cron jobs.

Posted By: nikhil89 on September 6, 2017, 5:20 am | Post: 1
Hi,

We are really sorry for the inconvenience caused to you.

Can you please share with us why you wish to add a cron job in Webuzo cron manually and not via the GUI?

Also if you wish to add the cron job manually you can add it in the system cron job file and not in the Webuzo cron job file, as the Webuzo cron job file is created and maintained by Webuzo itself. Hence if the cron job command is not entered in Webuzo cron job via GUI and if it is done manually it is not recognised by Webuzo and is re-written.

Posted By: foreverme on September 6, 2017, 1:51 pm | Post: 2
Why I wish to add cron manually?
I simply want a cron job to run only at startup. How would I enter this using GUI?
Code
@reboot /home/user/script.sh


What’s the path of the system cron job file? Do you mean crontab of root?
That’s not the way to go, even though I can run it as user under root then I’ll have to check that certain services are initialized which would make it unnecessarily complicated. As you may know root cron jobs run before user cron jobs. And my script is simply necessary at @reboot

Currently I use this command to edit cron jobs, logged in as user.
Code
env EDITOR=nano crontab –e

I always enter manually there, all scheduled crons run fine and are never overwritten by webuzo except for @reboot.

Posted By: webuzo_manager on September 7, 2017, 6:25 am | Post: 3
Hi foreverme,

You can add the Cron for reboot through GUI.

I have tried the same on my test server and the GUI accepted the command without any issues.

Posted By: foreverme on September 7, 2017, 12:31 pm | Post: 4
Sure it does if you don't know what you're doing.

Cron job is added as
***** @reboot /bla/bla/command

Posted By: webuzo_manager on September 9, 2017, 5:44 am | Post: 5
Hi foreverme,

I am really sorry for misunderstanding your query.

As the Cron File is managed by Webuzo for its user you cannot edit the same.

Instead, I suggest you create a new user on the system and run your custom cron command from that file.


Posted By: daniel.bair on October 21, 2018, 12:46 pm | Post: 6
I know this is a bit late...
But, after searching my system I found that you will need to edit /var/webuzo/users/<username>/cronfile to match your crontab file if you use 'crontab -e' from a ssh session.



Posted By: Dhanya on October 27, 2018, 8:30 am | Post: 7
Hi daniel.bair,

The /var/webuzo/users/<username>/cronfile lists the cronjobs added by the user from CronJob page of Webuzo Enduser panel.


Powered By AEF 1.0.8 © 2007-2008 Electron Inc.