diff options
Diffstat (limited to 'databases/cyrus-smlacapd/files/cyrus_smlacapd_backend.sh.in')
-rw-r--r-- | databases/cyrus-smlacapd/files/cyrus_smlacapd_backend.sh.in | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/databases/cyrus-smlacapd/files/cyrus_smlacapd_backend.sh.in b/databases/cyrus-smlacapd/files/cyrus_smlacapd_backend.sh.in deleted file mode 100644 index ff255910fe6d..000000000000 --- a/databases/cyrus-smlacapd/files/cyrus_smlacapd_backend.sh.in +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: cyrus_smlacapd_backend -# REQUIRE: DAEMON cyrus_pwcheck -# KEYWORD: shutdown - -# -# Add the following line to /etc/rc.conf to enable cyrus_smlacapd_backend: -# cyrus_smlacapd_backend_enable="YES" -# -prefix=%%PREFIX%% -cyrus=${prefix}/cyrus -. %%RC_SUBR%% - -name="cyrus_smlacapd_backend" -rcvar=`set_rcvar` - -[ -z "$cyrus_smlacapd_backend_enable" ] && cyrus_smlacapd_backend_enable="NO" -[ -z "$cyrus_smlacapd_backend_runtime" ] && cyrus_smlacapd_backend_runtime="${cyrus}/bin/run.x86-freebsd" -[ -z "$cyrus_smlacapd_backend_heap" ] && cyrus_smlacapd_backend_heap="${cyrus}bin/backend.x86-bsd" - -required_dirs="/var/acap /var/spool/acap" -pidfile=/var/run/cyrus_smlacapd_backend.pid -procname=$cyrus_smlacapd_backend_runtime -start_precmd="cyrus_smlacapd_backend_precmd" -start_postcmd="cyrus_smlacapd_backend_postcmd" -command=/usr/sbin/daemon -command_args="-f $cyrus_smlacapd_backend_runtime @SMLload=$cyrus_smlacapd_backend_heap" - -cyrus_smlacapd_backend_precmd() -{ - SOCKET=/var/acap/socke - if [ -e ${SOCKET} ] - then - rm ${SOCKET} - fi -} - -cyrus_smlacapd_backend_postcmd() -{ - sleep 1 - pid=`ps -o pid,command -axww | \ - awk '$2 == "'$cyrus_smlacapd_backend_runtime'" && $3 == "@SMLload='$cyrus_smlacapd_backend_heap'" { print $1 }'` - if [ -n "$pid" ] - then - echo "$pid" > $pidfile - fi -} - -load_rc_config $name - -run_rc_command "$1" |