Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Webuzo STOP editing my CRONJOB



Threaded Mode | Print  

 Webuzo STOP editing my CRONJOB (7 Replies, Read 10451 times)
foreverme
Group: Member
Post Group: Newbie
Posts: 17
Status:
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.
IP: --   

Webuzo STOP editing my CRONJOB
nikhil89
Group: Softaculous Team
Post Group: Elite Member
Posts: 467
Status:
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.
IP: --   

Webuzo STOP editing my CRONJOB
foreverme
Group: Member
Post Group: Newbie
Posts: 17
Status:
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.
IP: --   

Webuzo STOP editing my CRONJOB
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
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.
IP: --   

Webuzo STOP editing my CRONJOB
foreverme
Group: Member
Post Group: Newbie
Posts: 17
Status:
Sure it does if you don't know what you're doing.

Cron job is added as
***** @reboot /bla/bla/command
IP: --   

Webuzo STOP editing my CRONJOB
webuzo_manager
Group: Member
Post Group: Elite Member
Posts: 268
Status:
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.

IP: --   

Webuzo STOP editing my CRONJOB
daniel.bair
Group: Member
Post Group: Newbie
Posts: 2
Status:
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.


IP: --   

Webuzo STOP editing my CRONJOB
Dhanya
Group: Member
Post Group: Working Member
Posts: 200
Status:
Hi daniel.bair,

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

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 6:12 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.027