aboutsummaryrefslogblamecommitdiff
path: root/net-im/jabber-pyicq/files/jabber-pyicq-transport.sh.in
blob: 11c95414e19b79e98ec6230e78cb62fc3dc1fad6 (plain) (tree)
1
2
3
4
5
6
7
8
         
 
           
 


                       
                   




                                                              




                   
 
                    
 


                                                   
                                        
 
                                           
                                    

                                       
 
                   
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: jabber_pyicq
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Define these jabber_pyicq_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#

. %%RC_SUBR%%

name="jabber_pyicq"
rcvar=`set_rcvar`

load_rc_config $name

: ${jabber_pyicq_enable="NO"}
: ${jabber_pyicq_dir="%%PREFIX%%/lib/jabber/pyicq"}
: ${jabber_pyicq_piddir="/var/jabberd/pid"}
: ${jabber_pyicq_user="%%JABBER_USER%%"}

pidfile="${jabber_pyicq_piddir}/PyICQt.pid"
command_interpreter="%%PYTHON_CMD%%"
command="${jabber_pyicq_dir}/PyICQt.py"
command_args="-b -o pid=${pidfile}"

run_rc_command "$1"