Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Allow the use of multiple workers | 0ba944fa4f60754b31ec29a676e72a9b870698cc | Catalin(ux) M. BOIE | 2016-10-03 16:13:15 |
Docker fixes | 36653f824b0c2f7159a0cdbfa50e38aea714a0b5 | Catalin(ux) M. BOIE | 2016-10-03 16:12:48 |
Now, any script can update the structure and apply the fixes | 03e1ba61bdcac0514977b79c0b38449db29aa7a5 | Catalin(ux) M. BOIE | 2016-10-03 16:05:19 |
fpm: raise the memory limit to 128M from 32M because some initial commits may be very big | 5dee24337e21e740cba1080e9bfc376b2e8f2036 | Catalin(ux) M. BOIE | 2016-10-02 08:06:39 |
Compute the md5 key only when needed | 4eebe2a3863ca6b50e107ad84080629da6d81707 | Catalin(ux) M. BOIE | 2016-10-02 07:56:52 |
Pass all parameters to worker.php to be able to choose a different configuration | 4da8c1c26b9bd192fa4525f3168cce2fa421702c | root | 2016-09-29 18:18:40 |
Prefer https over ssh | 3dfed205de47850d459106b2479484d83fdcbca8 | Catalin(ux) M. BOIE | 2016-09-28 02:23:44 |
Bump version to 0.60 | fc13b029f14be5989df314e4adec67c78cc06b6d | Catalin(ux) M. BOIE | 2016-09-27 15:28:56 |
We cannot store directly in /var/lib/rocketgit because is owned by root | 0e3d2207e951db3c42d65784a2fe1b79e335cd71 | Catalin(ux) M. BOIE | 2016-09-27 03:04:55 |
SELinux: more fixes to start rocketgit-fpm without AVC errors | bbae4970f9972bdd37199dcf67beceef5f43aa36 | Catalin(ux) M. BOIE | 2016-09-26 20:49:07 |
Bump version to 0.58 | 32c5bf42c158ef5864094a75284115693fe72c03 | Catalin(ux) M. BOIE | 2016-09-26 15:34:10 |
Adjust goal and talk about CLA | 842c8e45c2f53d7cbf6db3ff9549b52034a0ccef | Catalin(ux) M. BOIE | 2016-09-26 02:59:47 |
Rewrap of text | dca9405b83ca52d20c92a4d908a656d43bbaa06e | Catalin(ux) M. BOIE | 2016-09-26 02:46:05 |
SELinux: no need for rocketgit-log folder; allow httpd server to write log files | eef3699ae6563e7b7ea30b9e688f498e38543529 | Catalin(ux) M. BOIE | 2016-09-25 20:28:52 |
worker fixes for when admin edits workers | f54af2c20ebd4df3b3424cab2e0bfb80aa8bafe6 | Catalin(ux) M. BOIE | 2016-09-25 20:26:08 |
Corrected typos and made clear some comments/hints | ab0c22fb84e13b9699b45ca8bc8181dd15f7a4a5 | Catalin(ux) M. BOIE | 2016-09-25 20:23:59 |
Do not show the query in the error message in plan.inc.php | feee2b816a64c9032e2fc9c37bb1a8216d43bc62 | Catalin(ux) M. BOIE | 2016-09-25 20:23:04 |
Renamed systemd.service to rocketgit-fpm.service | e24cc46ce59727f6acccb674e4ab53430a877171 | Catalin(ux) M. BOIE | 2016-09-25 20:21:35 |
.spec file fixes: use %{_unitdir} instead of @USR@/lib and systemd dependency | f39aea08f7b63aae84b3bc4f68bc8995f06e52e9 | Catalin(ux) M. BOIE | 2016-09-21 18:45:27 |
Fix duilder: forgot to replace @USR@ | d2d4920111d02c35944e15da642728a4b695c9ff | Catalin(ux) M. BOIE | 2016-09-21 17:56:15 |
File | Lines added | Lines deleted |
---|---|---|
scripts/worker.php | 12 | 6 |
scripts/worker.sh | 3 | 1 |
File scripts/worker.php changed (mode: 100644) (index 60086e3..ca9fb59) | |||
... | ... | require_once($INC . "/conn.inc.php"); | |
22 | 22 | ||
23 | 23 | rg_prof_start('MAIN'); | rg_prof_start('MAIN'); |
24 | 24 | ||
25 | // TODO: use different files for different workers! | ||
26 | rg_log_set_file($rg_log_dir . '/worker.log'); | ||
27 | rg_log_set_sid("000000"); // to spread the logs | ||
28 | |||
29 | 25 | if (!isset($_SERVER['argv'][1])) | if (!isset($_SERVER['argv'][1])) |
26 | $name = 'main'; | ||
27 | else | ||
28 | $name = $_SERVER['argv'][1]; | ||
29 | |||
30 | if (!isset($_SERVER['argv'][2])) | ||
30 | 31 | $conf_file = '/etc/rocketgit/worker.conf'; | $conf_file = '/etc/rocketgit/worker.conf'; |
31 | 32 | else | else |
32 | $conf_file = $_SERVER['argv'][1]; | ||
33 | rg_log('conf_file=' . $conf_file); | ||
33 | $conf_file = $_SERVER['argv'][2]; | ||
34 | |||
35 | // TODO: use different files for different workers! | ||
36 | rg_log_set_file($rg_log_dir . '/worker-' . $name . '.log'); | ||
37 | rg_log_set_sid("000000"); // to spread the logs | ||
38 | |||
39 | rg_log('name=' . $name . ' conf_file=' . $conf_file); | ||
34 | 40 | ||
35 | 41 | /* | /* |
36 | 42 | * Load configuration file | * Load configuration file |
File scripts/worker.sh changed (mode: 100755) (index 067f20c..99b77c7) | |||
7 | 7 | # this is run in rocketgit_worker_t, so we cannot do it | # this is run in rocketgit_worker_t, so we cannot do it |
8 | 8 | #check_context | #check_context |
9 | 9 | ||
10 | exec 100<>/var/lib/rocketgit/locks/worker.sh.lock | ||
10 | name="${1}" | ||
11 | |||
12 | exec 100<>/var/lib/rocketgit/locks/worker-${name}.sh.lock | ||
11 | 13 | ||
12 | 14 | flock --exclusive --nonblock 100 | flock --exclusive --nonblock 100 |
13 | 15 | if [ "${?}" != "0" ]; then | if [ "${?}" != "0" ]; then |