7 # description: On2 Technologies Flix Engine init script
10 # Source function library
11 . /etc/rc.d/init.d/functions
14 export PATH=$PATH:/usr/libexec/on2/flixengine
15 ## Specify the mencoder binary for flixd to use when decoding source files.
16 ## If running flixd from the command line or using su within this script to run
17 ## it as another user ensure that this environment variable is set. The default
18 ## install path for mencoder will not be in PATH so without this variable set
19 ## flixd will be unable to decode source files.
20 export FLIXD_MENCODER=/usr/libexec/on2/flixengine/mencoder
25 if [ ! -f /var/lock/subsys/portmap ]; then
26 echo >&2 "ERROR: portmap does not appear to be running."
27 echo >&2 "Flix Engine requires the portmap service to run."
30 # test for running portmapper
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/flixd ]; then
37 msg_starting "Flix Engine"
38 /usr/sbin/flixd --authdir=$AUTHDIR --pidfile /var/run/flixd.pid
40 if [ $RETVAL = 0 ]; then
46 msg_already_running "Flix Engine"
52 if [ -f /var/lock/subsys/flixd ]; then
53 killproc --pidfile flixd.pid flixd
55 msg_not_running "Flix Engine"
60 # See how we were called.
74 msg_usage "$0 {start|stop|restart}"