I have followed this pretty little tutorial to install red5 on Ubuntu 11.04
I can now run it from /usr/share/red5/red5.sh
But I'd like to have a init.d script like /etc/init.d/red5 start|stop|restart|...
I found one here but when used, it's saying
.: 11: Can't open /etc/rc.d/init.d/functions
What can I do to make it work ?
Edit
Replacing . /etc/rc.d/init.d/functions
by . /lib/lsb/init-functions
will give me
$ sudo /etc/init.d/red5 stop
/etc/init.d/red5: 50: status}”: not found
stop : missing task name
Try 'stop --help' for more information.
restart : missing task name
Try 'restart --help' for more information.
The init script you've found depends on non-existing file. Try replacing:
with this:
It's possible that there will be more changes needed.