The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How close forum by cron?
Hello!
Please help me. I need close and open forum by cron. How it's make? May be is simple script? Help please please. Write code please. Thank you! |
#2
|
|||
|
|||
You can not do this using the vBulletin Schedulaed tasks. If you want this, then you will need to write an OS cron task.
|
#3
|
|||
|
|||
Can you explain a little more about what you are trying to do? What are you trying to close and restart?
|
#4
|
||||
|
||||
I can close vbulletin from admin panel (options -- > vbulletin close/open)
-- I want close vbulletin for check base every night from cron linux. (cron.d) For example: 00 04 * * * root /usr/local/scripts/closevb # close vb 05 04 * * * root /usr/local/scripts/mysqlcheck -r ... #check base 15 04 * * * root /usr/local/scripts/openvb #open vb I need create scripts: closevb and openvb. I do not have experience for creation of these scripts. Please help. Thank you. |
#5
|
|||
|
|||
You should not run a database check unless it is needed.
|
#6
|
||||
|
||||
why?
auto check database it's very useful. I have big database and very loaded forum. And each time check corrects something after day of operation |
#7
|
|||
|
|||
If each day you have corrupted tables in need for a repair, then you should find the cause of this, not hiding it by resolving the symptoms.
|
#8
|
||||
|
||||
I understand you. Thank you. (Sorry I was mistaken, not repair, it's optimize(mysqlcheck -o) every night)
But now i need scripts to close and open vb for OS cron If you can help me, I will be happy. Thank you. |
#9
|
|||
|
|||
Also an optimise is not needed. If you would run that once a month (if at all) it would be more then enough, unless you have just delete very large amounts of data.
Optimising should only be done when needed, as it is not a riskfree operation and could cause database problems. |
#10
|
||||
|
||||
Ok.
Are you help me create this scripts? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|