summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Huneycutt <chadh@gentoo.org>2001-08-24 04:35:16 +0000
committerChad Huneycutt <chadh@gentoo.org>2001-08-24 04:35:16 +0000
commit3092ba7fef94fe6716e447d39dba44e2462cb09c (patch)
tree3d24b06f08794919d4ecfda7437fe125fba9c04c /sys-libs/gpm/files
parentfixums (diff)
downloadgentoo-2-3092ba7fef94fe6716e447d39dba44e2462cb09c.tar.gz
gentoo-2-3092ba7fef94fe6716e447d39dba44e2462cb09c.tar.bz2
gentoo-2-3092ba7fef94fe6716e447d39dba44e2462cb09c.zip
removed supervise support and added runscript support
Diffstat (limited to 'sys-libs/gpm/files')
-rw-r--r--sys-libs/gpm/files/digest-gpm-1.19.3-r42
-rw-r--r--sys-libs/gpm/files/gpm-1.19.3-r420
2 files changed, 22 insertions, 0 deletions
diff --git a/sys-libs/gpm/files/digest-gpm-1.19.3-r4 b/sys-libs/gpm/files/digest-gpm-1.19.3-r4
new file mode 100644
index 000000000000..493f00000502
--- /dev/null
+++ b/sys-libs/gpm/files/digest-gpm-1.19.3-r4
@@ -0,0 +1,2 @@
+MD5 69337348611578f680dc8e2224296878 devfs.patch
+MD5 dbfc33e0d52d008eeec1c8f93885e3f9 gpm-1.19.3.tar.gz
diff --git a/sys-libs/gpm/files/gpm-1.19.3-r4 b/sys-libs/gpm/files/gpm-1.19.3-r4
new file mode 100644
index 000000000000..842d396b5bea
--- /dev/null
+++ b/sys-libs/gpm/files/gpm-1.19.3-r4
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+PIDFILE=/var/run/gpm.pid
+EXE=/usr/sbin/gpm
+
+start() {
+ ebegin "Starting ${SERVICE}"
+ start-stop-daemon --start --quiet --exec ${EXE} -t ${MOUSE}
+ eend ${?} "Started ${SERVICE}." "Error starting ${SERVICE}."
+}
+
+stop() {
+ ebegin "Stopping ${SERVICE}"
+ start-stop-daemon --stop --quiet --pidfile ${PIDFILE} --exec ${EXE}
+ eend ${?} "Stopped ${SERVICE}." "Error stopping ${SERVICE}."
+}
+
+restart() {
+ stop
+ start
+}