| 392 | == Cron == |
| 393 | |
| 394 | BOA controls the root crontab and any changed made there will be overwritten, so things that would normally be in the root crontab need to go into users ones and use sudo, these are the ones in chris' crontab: |
| 395 | |
| 396 | {{{ |
| 397 | # delete metche backups which are more than a day old |
| 398 | # see https://tech.transitionnetwork.org/trac/ticket/531 |
| 399 | 28 11 * * * sudo /usr/local/bin/metche-clean -d |
| 400 | # set the colck after a reboot |
| 401 | @reboot sudo rdate -s ntp.demon.co.uk |
| 402 | # create a tmp dir on the ram disk for mysql |
| 403 | @reboot sudo mkdir /run/shm/mysql ; sudo chown mysql:mysql /run/shm/mysql |
| 404 | }}} |
| 405 | |
| 406 | To edit chris' crontab after logging in as another user: |
| 407 | |
| 408 | {{{ |
| 409 | sudo -i |
| 410 | export EDITOR=vim |
| 411 | crontab -e |
| 412 | }}} |
| 413 | |