aboutsummaryrefslogtreecommitdiff
path: root/comms/conserver
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2000-11-21 17:31:44 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2000-11-21 17:31:44 +0000
commitd4773dde1d314b2553b2c71b2391e308f7c7ca27 (patch)
tree6601b69858140478c891da26504e3eef06307828 /comms/conserver
parente3a5c8022116bb252c8787ca5b2f74cb3bd879a3 (diff)
downloadports-d4773dde1d314b2553b2c71b2391e308f7c7ca27.tar.gz
ports-d4773dde1d314b2553b2c71b2391e308f7c7ca27.zip
Notes
Diffstat (limited to 'comms/conserver')
-rw-r--r--comms/conserver/files/conserver.sh11
-rw-r--r--comms/conserver/files/conserver.sh.in11
2 files changed, 20 insertions, 2 deletions
diff --git a/comms/conserver/files/conserver.sh b/comms/conserver/files/conserver.sh
index 842c39e60400..cf27a4764ecf 100644
--- a/comms/conserver/files/conserver.sh
+++ b/comms/conserver/files/conserver.sh
@@ -1,5 +1,7 @@
#!/bin/sh
+# $FreeBSD$
+
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
@@ -14,8 +16,15 @@ start)
stop)
killall conserver && echo -n ' conserver'
;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+status)
+ ps -auxww | egrep '(conserver|console)' | egrep -v "($0|egrep)"
+ ;;
*)
- echo "Usage: `basename $0` {start|stop}" >&2
+ echo "Usage: `basename $0` {start|stop|restart|status}" >&2
;;
esac
diff --git a/comms/conserver/files/conserver.sh.in b/comms/conserver/files/conserver.sh.in
index 842c39e60400..cf27a4764ecf 100644
--- a/comms/conserver/files/conserver.sh.in
+++ b/comms/conserver/files/conserver.sh.in
@@ -1,5 +1,7 @@
#!/bin/sh
+# $FreeBSD$
+
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
echo "$0: Cannot determine the PREFIX" >&2
exit 1
@@ -14,8 +16,15 @@ start)
stop)
killall conserver && echo -n ' conserver'
;;
+restart)
+ $0 stop
+ $0 start
+ ;;
+status)
+ ps -auxww | egrep '(conserver|console)' | egrep -v "($0|egrep)"
+ ;;
*)
- echo "Usage: `basename $0` {start|stop}" >&2
+ echo "Usage: `basename $0` {start|stop|restart|status}" >&2
;;
esac