mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Created Cron (markdown)
parent
171fb37cb9
commit
1e5749c370
1 changed files with 36 additions and 0 deletions
36
Cron.md
Normal file
36
Cron.md
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
WeKan has some memory leaks. This Cron script restarts wekan once every hour.
|
||||
|
||||
1) Edit /root/hourly.sh
|
||||
|
||||
```
|
||||
sudo su
|
||||
|
||||
apt -y install nano cron
|
||||
|
||||
nano /root/hourly.sh
|
||||
```
|
||||
2) There add this text:
|
||||
```
|
||||
snap stop wekan.wekan
|
||||
|
||||
snap start wekan.wekan
|
||||
```
|
||||
3) Save and exit nano: Ctrl-o Enter Ctrl-x Enter
|
||||
|
||||
4) Edit cron:
|
||||
```
|
||||
export EDITOR=nano
|
||||
|
||||
crontab -e
|
||||
```
|
||||
There at bottom, add this line, that will restart WeKan hourly, and log to textfile:
|
||||
```
|
||||
0 * * * * /root/hourly.sh >> /root/hourly-log.txt 2>&1
|
||||
```
|
||||
5) Save and exit nano: Ctrl-o Enter Ctrl-x Enter
|
||||
|
||||
6) You can also list content of cron:
|
||||
|
||||
```
|
||||
crontab -l
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue