File: daemon.php

package info (click to toggle)
flyspray 0.9.8-10
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 2,444 kB
  • ctags: 3,031
  • sloc: php: 17,634; sh: 301; makefile: 12
file content (24 lines) | stat: -rw-r--r-- 292 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

$include = $_SERVER['argv'][1];
$sleep   = $_SERVER['argv'][2];
$runfile = $_SERVER['argv'][3];

chdir(dirname(__FILE__));

while (touch($runfile))
{
    run($include);
    sleep($sleep);
}

function run($include)
{
    global $db, $fs;

    $lang = 'en';

    include $include;
}

?>