Ubuntu – Red5 – Linux Installation init.d script

installationred5Ubuntu

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 ?

Best Answer

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