I think, you need to learn how to use and administrate linux. /somewhere/suitable is your bin path. Print "whereis whereis" in your console and take "/.../bin" part. Init.d doesn't need to be changed, but you could write your own, it's not so difficult.
this is my script, made from old default one, you can take a part of it if you don't need 2 smsboxes and an sqlbox #!/bin/sh # PROVIDE: kannel_smsbox kannel_wapbox kannel_bearerbox # REQUIRE: NETWORKING SERVERS # BEFORE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name=kannel rcvar=`set_rcvar` command="/usr/local/sbin/run_kannel_box" extra_commands="reload" sig_reload=SIGUSR1 load_rc_config $name # Set defaults kannel_config=${kannel_config:-"/usr/local/etc/kannel.conf"} kannel1_config=${kannel1_config:-"/usr/local/etc/kannel1.conf"} kannel2_config=${kannel2_config:-"/usr/local/etc/kannel-sqlbox.conf"} kannel_user=${kannel_user:-"kannel"} # Config file is required if [ ! -r ${kannel_config} ]; then warn "${kannel_config} is not readable." case $1 in force*) : ;; *) exit 1 ;; esac fi if test -n ${kannel_enable:-""} && checkyesno kannel_enable; then kannel_bearerbox_enable=${kannel_bearerbox_enable:-"YES"} kannel_smsbox_enable=${kannel_smsbox_enable:-"YES"} kannel_wapbox_enable=${kannel_wapbox_enable:-"NO"} fi # bearerbox name=kannel_bearerbox rcvar=`set_rcvar` pidfile=/var/run/kannel/${name}.pid # Defaults kannel_bearerbox_user=${kannel_bearerbox_user:-"${kannel_user}"} kannel_bearerbox_enable=${kannel_bearerbox_enable:-"NO"} kannel_bearerbox_config=${kannel_bearerbox_config:-"${kannel_config}"} kannel_bearerbox_flags=${kannel_bearerbox_flags:-"--pidfile ${pidfile} --min-delay 1 /usr/local/sbin/bearerbox ${kannel_bearerbox_flags} ${kannel_bearerbox_config}"} # load_rc_config $name run_rc_command "$1" # _rc_restart_done=false # smsbox name=kannel_smsbox rcvar=`set_rcvar` pidfile=/var/run/kannel/${name}.pid # Defaults kannel_smsbox_user=${kannel_smsbox_user:-"${kannel_user}"} kannel_smsbox_enable=${kannel_smsbox_enable:-"NO"} kannel_smsbox_config=${kannel_smsbox_config:-"${kannel_config}"} kannel_smsbox_flags=${kannel_smsbox_flags:-"--pidfile ${pidfile} --min-delay 1 /usr/local/sbin/smsbox ${kannel_smsbox_flags} ${kannel_smsbox_config}"} # load_rc_config $name run_rc_command "$1" # _rc_restart_done=false # smsbox1 name=kannel_smsbox1 rcvar=`set_rcvar` pidfile=/var/run/kannel/${name}.pid # Defaults kannel_smsbox1_user=${kannel_smsbox1_user:-"${kannel_user}"} kannel_smsbox1_enable=${kannel_smsbox1_enable:-"NO"} kannel_smsbox1_config=${kannel_smsbox1_config:-"${kannel1_config}"} kannel_smsbox1_flags=${kannel_smsbox1_flags:-"--pidfile ${pidfile} --min-delay 1 /usr/local/sbin/smsbox ${kannel_smsbox1_flags} ${kannel_smsbox1_config}"} # load_rc_config $name run_rc_command "$1" # _rc_restart_done=false # smsbox1 name=kannel_sqlbox rcvar=`set_rcvar` pidfile=/var/run/kannel/${name}.pid # Defaults kannel_sqlbox_user=${kannel_sqlbox_user:-"${kannel_user}"} kannel_sqlbox_enable=${kannel_sqlbox_enable:-"NO"} kannel_sqlbox_config=${kannel_sqlbox_config:-"${kannel2_config}"} kannel_sqlbox_flags=${kannel_sqlbox_flags:-"--pidfile ${pidfile} --min-delay 1 /usr/local/sbin/sqlbox ${kannel_sqlbox_flags} ${kannel_sqlbox_config}"} # load_rc_config $name run_rc_command "$1" # 2011/3/22 Joey L <mjh2...@gmail.com>: > I am running Kannel that comes as a debian package. > I installed and configured it via apt-get . > I have download the new version 1.43 and have compiled it. > I would like to remove the old version of the debian package and install the > new code - can someone help me ??? > I know to remove the package, it is dpkg -e kannel. > I have compiled the new package and i have to run one more command : > > make bindir=/somewhere/suitable install > > Can anyone tell me what "/somewhere/suitable install" should be ???? > > I would also like to know how i can get the init.d script running properly > under the new version. > > thanks > > mjh >