0

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 ?

3
  • possible duplicate of Startup script for Red5 on Ubuntu 9.04
    – quanta
    Oct 28, 2011 at 15:10
  • You're using init script for the Red Hat based distro.
    – quanta
    Oct 28, 2011 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 ? Nov 2, 2011 at 10:53

1 Answer 1

0

/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
  • ...

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .