I found some tips around on the net. Could it be done like this?
# vi /etc/rc.d/init.d/areca
Enter this in this file:
---------------------------------------
#! /bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/local/sbin/archttp32
NAME=archttp32
DESC="Areca RAID controller management interface"
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
set -e
case "$1" in
start)
log_begin_msg "Starting $DESC..."
start-stop-daemon --start --quiet -b -m --pidfile /var/run/$NAME.pid \
--exec $DAEMON -- $DAEMON_OPTS 2>/dev/null || log_end_msg 1
log_end_msg 0
;;
stop)
log_begin_msg "Stopping $DESC..."
start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
-s INT --exec $DAEMON --oknodo || log_end_msg 1
sleep 5
log_end_msg 0
;;
restart|force-reload)
log_begin_msg "Restarting $DESC..."
start-stop-daemon --stop --quiet --exec $DAEMON --pidfile \
/var/run/$NAME.pid --oknodo
sleep 6
start-stop-daemon --start -m -b --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || log_end_msg 1
log_end_msg 0
;;
*)
N=/etc/init.d/$NAME
# echo "Usage: $N {start|stop|restart|force-reload}" >&2
echo "Usage: $N {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0
-------------------------------
# cd /etc/rc.d/rc7.d
# ln -s /etc/rc.d/init.d/areca S95areca
# /sbin/e-smith/config set areca service InitscriptOrder 95 status enabled
I tried it just now, but it gives me an error when the service should start. Cant find the error in the log though... Could it be in the /etc/rc.d/init.d/areca script?