Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. 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 ?

share|improve this question
    
possible duplicate of Startup script for Red5 on Ubuntu 9.04 –  quanta Oct 28 '11 at 15:10
    
You're using init script for the Red Hat based distro. –  quanta Oct 28 '11 at 15:10
    
Ok I think you are right. Now I have another problem but I'll probably do an other question for that. Can you please put your comment as an answer so I can validate ? –  Pierre de LESPINAY Nov 2 '11 at 10:53

1 Answer 1

up vote 0 down vote accepted

/etc/rc.d/init.d/functions contains some functions: daemon, killproc, status, ... which is used in init script on Red Hat based distro. Since you're using Ubuntu, you probably want to 'convert':

  • /etc/rc.d/init.d/functions >> /lib/lsb/init-functions
  • daemon >> start-stop-daemon
  • ...
share|improve this answer

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.