Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 4 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
1  
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
add comment

Your Answer

 
discard

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.