summaryrefslogtreecommitdiffstats
path: root/sbin/init.d/mouse
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2006-07-16 15:09:42 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 11:59:36 +0200
commit5a62166d3029d70f62af1f39e76994318f107e95 (patch)
treeb3bbe062a75d46fc60527855eaa423d59d6be77f /sbin/init.d/mouse
parent[RELEASE] init-scripts-0.3.2 (diff)
downloadinit-scripts-5a62166d3029d70f62af1f39e76994318f107e95.tar.gz
[RELEASE] init-scripts-0.3.3v0.3.3
Diffstat (limited to 'sbin/init.d/mouse')
-rwxr-xr-xsbin/init.d/mouse7
1 files changed, 7 insertions, 0 deletions
diff --git a/sbin/init.d/mouse b/sbin/init.d/mouse
index 6ac43d7..c45aae7 100755
--- a/sbin/init.d/mouse
+++ b/sbin/init.d/mouse
@@ -9,6 +9,13 @@ option procname reserved_option gpm
option cmdline reserved_option '$bin -t $opt_type -m $opt_device'
option pidfile reserved_option /var/run/gpm.pid
+# gpm is buggy, it doesn't close its std* before forking, so the startup
+# script hang at boot time because it hogs the terminal.
+function fct_pre_start {
+ #exec 10>&0 11>&1 12>&2
+ exec </dev/null >&0 2>&0
+}
+
function fct_pre_stop {
$cmdline -k >/dev/null 2>&1
}