* updated knights (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / mail / qscanq / runit.patch
blob9612cc041fa81b0369a2f1a22f5e1f013a6e2ed1
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../qscanq/runit.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- ./src/conf-svc.orig 2005-12-01 13:09:29.000000000 -0300
18 +++ ./src/conf-svc 2005-12-01 13:35:26.000000000 -0300
19 @@ -1,6 +1 @@
20 -/command/svc
22 -The first line of this file gives the full path to the svc program from
23 -Dan Bernstein's daemontools package. You shouldn't need to change it,
24 -unless you've installed daemontools to a non-standard place, or are using
25 -an outdated version of daemontools.
26 +/command/runsvctrl
27 --- ./src/run-cleanq.c.orig 2005-12-01 13:09:29.000000000 -0300
28 +++ ./src/run-cleanq.c 2005-12-01 13:31:55.000000000 -0300
29 @@ -7,7 +7,7 @@
31 char *svco_cmd[] = {
32 (char *)auto_svc,
33 -"-o",
34 +"o",
35 (char *)auto_scanq,
38 --- ./src/install-cleanq.c.orig 2005-12-02 19:32:22.000000000 -0300
39 +++ ./src/install-cleanq.c 2005-12-02 19:51:45.000000000 -0300
40 @@ -79,6 +79,7 @@
41 if (chdir("log") == -1)
42 strerr_die4sys(111,FATAL,"unable to chdir to ", r, "/log: ");
43 makedir("main",02755,auto_loguid,0);
44 + fn = "main/config"; start(); outs(auto_cqlog); finish();
46 /* Create the "run" script */
47 fn = "run";
48 @@ -87,9 +88,7 @@
49 start();
50 outs("#!/bin/sh\nexec setuidgid ");
51 outs(auto_loguser);
52 - outs(" multilog t \\\n ");
53 - outs(auto_cqlog);
54 - outs("\\\n ./main\n");
55 + outs(" svlogd -t ./main\n");
56 finish();
57 move_file(fn,"run");
58 fn = "run";