Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have followed this pretty little tutorial to install red5 on Ubuntu 11.04
I can now run it from /usr/share/red5/
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 ?


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.

share|improve this question
up vote 5 down vote accepted

The init script you've found depends on non-existing file. Try replacing:

# Source function library
. /etc/rc.d/init.d/functions

with this:

# Source function library
. /lib/lsb/init-functions

It's possible that there will be more changes needed.

share|improve this answer
Thank you for your answer, question edited – Pierre de LESPINAY Nov 2 '11 at 7:28
Apparently the script is much older and less incompatible then I thought. I recommend to look for other alternatives, e.g. init.d script from BigBlueButton looks good - be sure to check variables in the script to see if they are relevant for your system. – jnv Nov 2 '11 at 10:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.