Modify Wowza Streaming Engine init systems (Linux)

With Wowza Streaming Engine™ media server software, you can run Wowza Streaming Engine as a service on Linux operating systems that require systemd support, as well as those that use the sysvinit/upstart system. This article describes how to convert the init system if you have updated to a newer version of Linux that requires systemd support, such as upgrading from Ubuntu 14.04 to 15.10.

Notes:
  • Changing the init system services is only relevant if you're running Wowza Streaming Engine as a service.
     
  • For Wowza Streaming Engine 4.4.1 and later, the installer should detect and use the appropriate init system services. If the installer misidentifies the init system, see Check services on Linux.
     
  • For more information about init systems, see init Unix process.

If Wowza Streaming Engine services won't start after upgrading your operating system, you might need to manually change the init system services.

  1. See if the Wowza Streaming Engine services are running. Open a Terminal window and enter the following command:
    ps ax | grep Wowza | awk '{print substr($0,0,120)}

    The command should return output similar to:

    741 ? Ss 0:00 /bin/bash /usr/local/WowzaStreamingEngine/bin/systemd.sh start
    742 ? Ss 0:00 /bin/bash /usr/local/WowzaStreamingEngine/manager/bin/startmgr.sh
    790 ? Sl 0:20 /usr/local/WowzaStreamingEngine/java/bin/java -cp :/usr/local/WowzaStreamingEngine/manager/
    1284 ? Sl 0:09 /usr/local/WowzaStreamingEngine/java/bin/java -Xmx1190M -XX:+UseG1GC -XX:MaxGCPauseMillis=1

  2. If you don't see processes for WowzaStreamingEngined or WowzaStreamingEngineManagerd, start them. Open a Terminal window and enter one of the following commands, depending on your distribution and the service that needs to be started:
     
    sudo service WowzaStreamingEngine start

    sudo service WowzaStreamingEngineManager start

    /etc/init.d/WowzaStreamingEngine start

    /etc/init.d/WowzaStreamingEngineManager start

  3. If the Wowza Streaming Engine services won't start, the installer might have misidentified the init system for your operating system. Use one of the following commands to change the init system between sysvinit/upstart and systemd:
     

To change from sysvinit/upstart to systemd, run the command:

sudo /usr/local/WowzaStreamingEngine/bin/installsystemd.sh

This removes the sysvinit/upstart services, and then creates and starts the systemd services.

To change from systemd to sysvinit/upstart, run the command:

sudo /usr/local/WowzaStreamingEngine/bin/installupstart.sh

This removes the systemd services, and then creates and starts the sysvinit/upstart services.