summaryrefslogtreecommitdiff
path: root/x11/xfstt/files
diff options
context:
space:
mode:
authorgrant <grant>2002-09-27 14:47:06 +0000
committergrant <grant>2002-09-27 14:47:06 +0000
commit05e4c9dfa8e906c323fcc405d57b9b915b11370a (patch)
tree1ac06f8cf57ff273ba60fc90b94297457a107bf4 /x11/xfstt/files
parentacc6629bd4961a68befff0517e1db6343cbea58d (diff)
downloadpkgsrc-05e4c9dfa8e906c323fcc405d57b9b915b11370a.tar.gz
* use bsd.pkg.install.mk and automatic rc.d script handling.
* convert to rc.subr-style script.
Diffstat (limited to 'x11/xfstt/files')
-rw-r--r--x11/xfstt/files/xfstt.sh29
1 files changed, 12 insertions, 17 deletions
diff --git a/x11/xfstt/files/xfstt.sh b/x11/xfstt/files/xfstt.sh
index 376c2574a35..74bf3eeca8d 100644
--- a/x11/xfstt/files/xfstt.sh
+++ b/x11/xfstt/files/xfstt.sh
@@ -1,22 +1,17 @@
-#!/bin/sh
+#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: xfstt.sh,v 1.2 2002/09/20 04:05:45 grant Exp $
+# $NetBSD: xfstt.sh,v 1.3 2002/09/27 14:47:06 grant Exp $
#
+# PROVIDE: xfstt
+# REQUIRE: DAEMON
-PREFIX=%%PREFIX%%
+. /etc/rc.subr
-case "$1" in
+name="xfstt"
+command="@PREFIX@/bin/${name}"
+command_flags="--user nobody --notcp --daemon &"
+pidfile="/var/run/${name}.pid"
+start_precmd="${command} --sync >/dev/null"
-start)
- ${PREFIX}/bin/xfstt --sync >/dev/null
- ${PREFIX}/bin/xfstt --user nobody --notcp --daemon && echo -n ' xfstt'
- ;;
-stop)
- kill `ps -auxwww | grep xfstt | awk '{ print $2 }'`
- echo -n ' xfstt'
- ;;
-*)
- echo "$0 start | stop"
- ;;
-
-esac
+load_rc_config $name
+run_rc_command "$1"