diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2006-03-17 02:55:30 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2006-03-17 02:55:30 +0000 |
commit | c250a6d90cdc5d4945095d652a5a3bff2314eadc (patch) | |
tree | fdaa49507e6dc185eebf4261b2e5b97c0d1106d0 /net-p2p | |
parent | 30cc0a34f1105d0a645e0ab7dee25bb294edef43 (diff) | |
download | ports-c250a6d90cdc5d4945095d652a5a3bff2314eadc.tar.gz ports-c250a6d90cdc5d4945095d652a5a3bff2314eadc.zip |
Notes
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/mldonkey-devel/files/mlnet.sh | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/net-p2p/mldonkey-devel/files/mlnet.sh b/net-p2p/mldonkey-devel/files/mlnet.sh deleted file mode 100644 index ad55c9c7b347..000000000000 --- a/net-p2p/mldonkey-devel/files/mlnet.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# -# Under a BSDL license. Copyright 2005. Mario S F Ferreira <lioux@FreeBSD.org> - -# PROVIDE: mlnet -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# -# Add the following lines to /etc/rc.conf to enable mlnet: -# -#mlnet_enable="YES" -#mlnet_user="" -#mlnet_flags="" -#mlnet_logfile="" -# - -. /etc/rc.subr - -name="mlnet" -rcvar=`set_rcvar` -command="%%PREFIX%%/bin/${name}" -procname="%%PREFIX%%/bin/${name}-real" - -load_rc_config "${name}" -: ${mlnet_enable="NO"} -: ${mlnet_user="$(whoami)"} -: ${mlnet_flags=""} -: ${mlnet_logfile=""} - -pidfile="$(eval echo ~${mlnet_user}/.mldonkey/$(basename ${procname}).pid)" -required_dirs="$(eval echo ~${mlnet_user})" - -mlnet_check_vars() -{ - if [ "x${mlnet_user}" = "xroot" ]; then - warn "You have to set mlnet_user to a non-root user for security reasons" - return 1 - fi - - return 0 -} - -start_precmd="mlnet_check_vars" -start_cmd="start_cmd" -start_cmd() -{ - if [ -n "${mlnet_logfile}" ]; then - mlnet_logcommand="-log_file ${mlnet_logfile}" - fi - - if [ "x${mlnet_user}" = "x$(whoami)" ]; then - eval "${command} \ - ${mlnet_logcommand} \ - ${mlnet_flags} \ - >/dev/null &" - else - su -l ${mlnet_user} -c "${command} \ - ${mlnet_logcommand} \ - ${mlnet_flags} \ - >/dev/null &" - fi -} - -stop_precmd="mlnet_check_vars" - -run_rc_command "$1" |