Saturday, March 22, 2008

Starting mvprelay via init.d

I have created a script to start and stop mvprelay via the init.d process. The script is for Ubuntu 7.10 - the Gutsy Gibbon.
  1. Download mvprelay_init.tar.gz to /tmp
  2. cd /
  3. sudo tar xvfz /tmp/mvprelay_init.tar.gz
  4. vim /etc/default/mvprelay
    1. Update the MEDIA_SERVER variable with your server's IP address
    2. save the file
  5. sudo update-rc.d mvprelay start 50 2 3 4 5 .
  6. /etc/init.d/mvprelay start
This process should extract the files to the correct location under /etc (/etc/init.d and /etc/default). The update-rc.d command sets mvprelay to start in run modes 2, 3, 4 , 5 and priority 50 (which should be after the dhcpd, tftp mysql servers have started).

I have test the script, it starts, it stops, it restarts. mvpmc boots up from a cold boot. Other than that it is completely untested so your results may differ. No warranty provided, but I will help where I can.

No comments: