mainqndtest
v1.1.1
Last change
on this file since 42095c5 was
42bd667,
checked in by David Fuertes <dfuertes@…>, 4 years ago
|
Historial Limpio
|
-
Property mode set to
100755
|
File size:
575 bytes
|
Line | |
---|
1 | description "web2py task scheduler" |
---|
2 | |
---|
3 | # INSTRUCTIONS: |
---|
4 | # COPY THIS FILE IN: |
---|
5 | # /etc/init/web2py-scheduler.con |
---|
6 | # |
---|
7 | # To start/stop the scheduler, use |
---|
8 | # "sudo start web2py-scheduler" |
---|
9 | # "sudo stop web2py-scheduler" |
---|
10 | # "sudo status web2py-scheduler" |
---|
11 | # |
---|
12 | # YOU MAY HAVE TO EDIT PATH TO WEB2PY BELOW |
---|
13 | |
---|
14 | start on (local-filesystems and net-device-up IFACE=eth0) |
---|
15 | stop on shutdown |
---|
16 | |
---|
17 | # Give up if restart occurs 8 times in 60 seconds. |
---|
18 | respawn limit 8 60 |
---|
19 | |
---|
20 | exec sudo -u www-data python /home/www-data/web2py/web2py.py -K parking > /tmp/scheduler.out |
---|
21 | respawn |
---|
Note: See
TracBrowser
for help on using the repository browser.