aboutsummaryrefslogtreecommitdiffstats
path: root/comms/mserver
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-07-20 16:25:32 +0800
committersobomax <sobomax@FreeBSD.org>2000-07-20 16:25:32 +0800
commitecf38bc0c1dd75b6ce0a0c4244600d8380713a90 (patch)
treefb60334c8dd9c19b0683d832ec0d72ac907fbdb5 /comms/mserver
parent2b2db090ac7df4994ad6c1a53832c59b5952c155 (diff)
downloadfreebsd-ports-gnome-ecf38bc0c1dd75b6ce0a0c4244600d8380713a90.tar.gz
freebsd-ports-gnome-ecf38bc0c1dd75b6ce0a0c4244600d8380713a90.tar.zst
freebsd-ports-gnome-ecf38bc0c1dd75b6ce0a0c4244600d8380713a90.zip
Replace old startup script with new capable to do start/stop operations.
PR: 20039 Submitted by: Bruce A. Mah <bmah@cisco.com>
Diffstat (limited to 'comms/mserver')
-rw-r--r--comms/mserver/files/patch-ad30
1 files changed, 24 insertions, 6 deletions
diff --git a/comms/mserver/files/patch-ad b/comms/mserver/files/patch-ad
index 03857142b2bb..d8b2a07d27ce 100644
--- a/comms/mserver/files/patch-ad
+++ b/comms/mserver/files/patch-ad
@@ -1,7 +1,25 @@
-diff -ruN mserver-0.23a.orig/mserver.sh.sample mserver-0.23a/mserver.sh.sample
---- mserver.sh.sample Thu Jan 1 03:00:00 1970
-+++ mserver.sh.sample Fri May 21 12:01:53 1999
-@@ -0,0 +1,3 @@
+diff -ruN mserver-0.23a.orig/mserver.sh mserver-0.23a/mserver.sh
+--- mserver.sh.sample Wed Dec 31 16:00:00 1969
++++ mserver.sh.sample Wed Jul 19 10:11:57 2000
+@@ -0,0 +1,21 @@
+#!/bin/sh
-+echo -n " mserver"
-+/usr/local/sbin/mserver
++
++if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
++ echo "$0: Cannot determine the PREFIX" >&2
++ exit 1
++fi
++
++case "$1" in
++start)
++ [ -x ${PREFIX}/sbin/mserver ] && ${PREFIX}/sbin/mserver > /dev/null && echo -n ' mserver'
++ ;;
++stop)
++ killall mserver && echo -n ' mserver'
++ ;;
++*)
++ echo "Usage: `basename $0` {start|stop}" >&2
++ ;;
++esac
++
++exit 0
++