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 ?

link|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
feedback

1 Answer

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
  • ...
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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