From 6fe8dfe1947ad3b44584fa29deb7b585e1c120c3 Mon Sep 17 00:00:00 2001 From: vs Date: Thu, 15 Dec 2005 09:03:14 +0000 Subject: Properly name startup-script --- audio/gnump3d/Makefile | 2 +- audio/gnump3d/files/gnump3.sh.in | 37 ------------------------------------- audio/gnump3d/files/gnump3d.sh.in | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 38 deletions(-) delete mode 100644 audio/gnump3d/files/gnump3.sh.in create mode 100644 audio/gnump3d/files/gnump3d.sh.in (limited to 'audio/gnump3d') diff --git a/audio/gnump3d/Makefile b/audio/gnump3d/Makefile index 6868cad57f03..bcbb5dfe7e1e 100644 --- a/audio/gnump3d/Makefile +++ b/audio/gnump3d/Makefile @@ -27,7 +27,7 @@ USE_BZIP2= yes USE_REINPLACE= yes USE_PERL5_RUN= yes NO_BUILD= yes -USE_RC_SUBR= gnump3.sh +USE_RC_SUBR= gnump3d.sh SUB_LIST+= PERL=${PERL} MAN1= gnump3d-index.1 gnump3d-top.1 gnump3d.1 gnump3d.conf.1 diff --git a/audio/gnump3d/files/gnump3.sh.in b/audio/gnump3d/files/gnump3.sh.in deleted file mode 100644 index 98de6a39fb00..000000000000 --- a/audio/gnump3d/files/gnump3.sh.in +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# -# PROVIDE: gnump3d -# REQUIRE: DAEMON NETWORKING LOGIN -# KEYWORD: FreeBSD shutdown - -. %%RC_SUBR%% - -gnump3d_enable=${gnump3d_enable-"NO"} -gnump3d_program=${gnump3d_program:-%%PREFIX%%/bin/gnump3d} -gnump3d_flags=${gnump3d_flags-"--quiet --background"} -gnump3d_pidfile=${gnump3d_pidfile:-/var/run/gnump3d.pid} - -name="gnump3d" -rcvar=`set_rcvar` -command="%%PREFIX%%/bin/gnump3d" -command_interpreter="%%PERL%%" -pidfile="${gnump3d_pidfile}" - -load_rc_config $name - -start_cmd=gnump3d_start - -# hack to capture the PID -gnump3d_start() { - pid=`check_process ${command} ${command_interpreter}` - if [ -z $pid ]; then - echo "Starting ${name}." - ${command} ${gnump3d_flags} - pid=`check_process ${command} ${command_interpreter}` - echo $pid > ${gnump3d_pidfile} - else - echo "${name} already running? (pid = $pid)" - fi -} - -run_rc_command "$1" diff --git a/audio/gnump3d/files/gnump3d.sh.in b/audio/gnump3d/files/gnump3d.sh.in new file mode 100644 index 000000000000..98de6a39fb00 --- /dev/null +++ b/audio/gnump3d/files/gnump3d.sh.in @@ -0,0 +1,37 @@ +#!/bin/sh +# +# PROVIDE: gnump3d +# REQUIRE: DAEMON NETWORKING LOGIN +# KEYWORD: FreeBSD shutdown + +. %%RC_SUBR%% + +gnump3d_enable=${gnump3d_enable-"NO"} +gnump3d_program=${gnump3d_program:-%%PREFIX%%/bin/gnump3d} +gnump3d_flags=${gnump3d_flags-"--quiet --background"} +gnump3d_pidfile=${gnump3d_pidfile:-/var/run/gnump3d.pid} + +name="gnump3d" +rcvar=`set_rcvar` +command="%%PREFIX%%/bin/gnump3d" +command_interpreter="%%PERL%%" +pidfile="${gnump3d_pidfile}" + +load_rc_config $name + +start_cmd=gnump3d_start + +# hack to capture the PID +gnump3d_start() { + pid=`check_process ${command} ${command_interpreter}` + if [ -z $pid ]; then + echo "Starting ${name}." + ${command} ${gnump3d_flags} + pid=`check_process ${command} ${command_interpreter}` + echo $pid > ${gnump3d_pidfile} + else + echo "${name} already running? (pid = $pid)" + fi +} + +run_rc_command "$1" -- cgit