|
Revision ,488, 431 bytes
(checked in by fidojones, 4 months ago)
|
|
scripts para iniciar el cron y la configuracion de lighttpd
|
-
Property executable set to
True
|
| Line | |
|---|
| 1 | #! /bin/sh |
|---|
| 2 | |
|---|
| 3 | case "$1" in |
|---|
| 4 | start) |
|---|
| 5 | echo "Starting baifox cron daemon" |
|---|
| 6 | /usr/local/baifox/panel/admin_panel/modulos/mod_cron/cron.py 1>/dev/null 2>&1 & |
|---|
| 7 | ;; |
|---|
| 8 | stop) |
|---|
| 9 | echo "Stopping baifox cron daemon" |
|---|
| 10 | CRONPID=`cat /usr/local/baifox/panel/admin_panel/cache/cron.pid` |
|---|
| 11 | kill -9 $CRONPID |
|---|
| 12 | echo "Service stopped"; |
|---|
| 13 | ;; |
|---|
| 14 | *) |
|---|
| 15 | echo "Usage: /etc/init.d/baifox_cron {start|stop}" |
|---|
| 16 | exit 1 |
|---|
| 17 | ;; |
|---|
| 18 | esac |
|---|
| 19 | |
|---|
| 20 | exit 0 |
|---|