Package: approx
Version: 1.12
Severity: wishlist
runit based systems requires to not detach daemon.
see my hack below.
diff -ru approx-1.12/approx.conf approx-1.12new/approx.conf
--- approx-1.12/approx.conf 2005-04-17 18:50:49.000000000 +0200
+++ approx-1.12new/approx.conf 2005-04-29 09:57:29.000000000 +0200
@@ -5,6 +5,7 @@
#cache /var/cache/approx
#interval 720
#debug false
+#detach true
# Here are some examples of remote repository mappings.
diff -ru approx-1.12/approx.conf.5 approx-1.12new/approx.conf.5
--- approx-1.12/approx.conf.5 2005-04-08 20:59:28.000000000 +0200
+++ approx-1.12new/approx.conf.5 2005-04-29 09:58:34.000000000
+0200
@@ -35,6 +35,10 @@
Specifies whether debugging messages should be printed
(default:
.BR false )
+.IP detach
+Specifies whether detaching approx daemon
+(default:
+.BR true )
.PP
The other name/value pairs are used to map distribution names
to remote repositories. For example,
diff -ru approx-1.12/approx.ml approx-1.12new/approx.ml
--- approx-1.12/approx.ml 2005-04-25 15:54:00.000000000 +0200
+++ approx-1.12new/approx.ml 2005-04-29 09:45:02.000000000 +0200
@@ -339,6 +339,11 @@
message "%s" (Printexc.to_string e)
let () =
- (* double fork to detach daemon *)
- if Unix.fork () = 0 && Unix.fork () = 0 then
- daemon ()
+ if detach then
+ begin
+ (* double fork to detach daemon *)
+ if Unix.fork () = 0 && Unix.fork () = 0 then
+ daemon ()
+ end
+ else
+ daemon ()
diff -ru approx-1.12/default_config.ml approx-1.12new/default_config.ml
--- approx-1.12/default_config.ml 2005-04-08 20:59:28.000000000
+0200
+++ approx-1.12new/default_config.ml 2005-04-29 02:26:12.000000000
+0200
@@ -12,3 +12,4 @@
let port = get_int "port" ~default: 9999
let interval = get_int "interval" ~default: 720 (* minutes *)
let debug = get_bool "debug" ~default: false
+let detach = get_bool "detach" ~default: true
diff -ru approx-1.12/default_config.mli
approx-1.12new/default_config.mli
--- approx-1.12/default_config.mli 2005-04-08 20:59:28.000000000
+0200
+++ approx-1.12new/default_config.mli 2005-04-29 02:25:59.000000000
+0200
@@ -7,3 +7,4 @@
val port : int
val interval : int
val debug : bool
+val detach : bool
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing'), (33, 'unstable'), (15, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11.7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages approx depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcurl3 7.13.2-2 Multi-protocol file transfer libra
ii libidn11 0.5.13-1.0 GNU libidn library, implementation
ii libpcre3 4.5-1.1 Perl 5 Compatible Regular Expressi
ii libssl0.9.7 0.9.7e-3 SSL shared libraries
ii wget 1.9.1-8 retrieves files from the web
ii zlib1g 1:1.2.2-3 compression library - runtime
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]