Thanks for your answer. This is what I did;
Orginal file:
#! /bin/sh
### BEGIN INIT INFO
# Provides: webiopi
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: WebIOPi initscript
# Description: WebIOPi initscript
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="WebIOPi Custom"
NAME=webiopi-custom
HOME=.
DAEMON=/usr/bin/python
DAEMON_ARGS="webiopi_custom.py"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
New file:
#! /bin/sh
### BEGIN INIT INFO
# Provides: webiopi_custom
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: WebIOPi initscript
# Description: WebIOPi initscript
### END INIT INFO
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="WebIOPi Custom"
NAME=webiopi_custom
HOME=.
DAEMON=/usr/bin/python
DAEMON_ARGS="webiopi_custom.py"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
Then
pi@raspberrypi ~/WebIOPi-0.5.3/examples/custom $ sudo cp webiopi_custom.daemon /etc/init.d/webiopi_custom
pi@raspberrypi ~ $ sudo update-rc.d webiopi_custom defaults
update-rc.d: using dependency based boot sequencing
insserv: script webiopi_custom is not an executable regular file, skipped!
insserv: script webiopi: service webiopi already provided!
Wha could it be wrong?