Package: 6tunnel
Severity: normal
Tags: patch
hi,
6tunnel sets up a SIGTERM/SIGINT handler which just does:
void term_hand()
{
if (pid_file)
unlink(pid_file);
}
because of this, 6tunnel does not terminate, but just
removes its pidfile.
I wanted to start/stop 6tunnel via an initscript, but
stopping will not work.
btw. what do you think of adding an init-script to the package,
so that users just need to fill out /etc/default/6tunnel and
have things setup automatically at boot. (I use 6tunnel to add
ipv6 "support" to some services)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (400, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-k7
Locale: LANG=C, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
--- 6tunnel-0.11rc1/6tunnel.c-orig 2004-04-21 21:11:32.000000000 +0200
+++ 6tunnel-0.11rc1/6tunnel.c 2006-05-12 16:28:11.000000000 +0200
@@ -465,6 +465,7 @@
{
if (pid_file)
unlink(pid_file);
+ exit(0);
}
int main(int argc, char **argv)