TITLE
    QuickTime Streaming Server: Making PlaylistBroadcaster Open and Start at Server Startup
Article ID:
Created:
Modified:
86016
3/24/00
4/5/00

TOPIC

    I have three separate playlists that I would like to have start up automatically when my Mac OS X Server is starting up. How can I do this?


DISCUSSION

    Below is the text of the startup script that runs at Mac OS X Server startup. As you can see, it is the script that launches QuickTime Streaming Server (QTSS) the first time.


      File:  /private/etc/startup/1900_QuickTime
      ==========================================
      #!/bin/sh

      . /etc/rc.common

      if [ "${QTSSERVER}" = "-YES-" ]; then
      ConsoleMessage "Starting QuickTime streaming server"

      /usr/sbin/QuickTimeStreamingServer
      fi

    Modify this script in the 'if' portion. Add the absolute path to a shell script that starts up your playlist broadcasters. The line should go after "/usr/bin/QuickTimeStreamingServer".
      File:  /private/etc/startup/1900_QuickTime
      ==========================================
      #!/bin/sh

      . /etc/rc.common

      if [ "${QTSSERVER}" = "-YES-" ]; then
      ConsoleMessage "Starting QuickTime streaming server"

      /usr/sbin/QuickTimeStreamingServer
      /path/to/shell/script/start_3_playlist_broadcasters
      fi
    Note: Paths to the actual hinted media files in the playlist and broadcast config files should not be relative, but should be absolute because the playlists themselves will be running at startup time, and not necessarily from their own local subdirectories.


Document Information
Product Area: Mac OS System Software
Category: Mac OS X Server
Sub Category: QuickTime Streaming

Copyright © 2000 Apple Computer, Inc. All rights reserved.