# Wowza doesn't start at boot

**URL:** https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939
**Category:** Wowza Streaming Engine
**Tags:** server-administration
**Created:** [May 2, 2014, 2:33pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939 "2014-05-02T14:33:53Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Francesco\_Fallica](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Francesco\_Fallica](https://community.wowza.com/u/Francesco_Fallica)
#### Post date: [May 2, 2014, 2:33pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/1 "2014-05-02T14:33:53Z")

</div>

Hi,

after i followed this guide: [https://www.wowza.com/docs/how-to-run-wowza-streaming-engine-as-a-named-user-linux-and-os-x](https://www.wowza.com/docs/how-to-run-wowza-streaming-engine-as-a-named-user-linux-and-os-x)

Wowza doesn’t start at boot, but if i start manually startup script everything goes well.

This is my boot.log file:

```auto
Starting sshd: [OK]
Starting ntpd: [OK]
Starting postfix: [OK]
	WowzaStreamingEngine stopped
	WowzaStreamingEngine: starting...
        WowzaStreamingEngine stopped [OK]
	WowzaStreamingEngineManager stopped
	WowzaStreamingEngineManager: starting...
        WowzaStreamingEngineManager stopped [OK]
Starting crond: [OK]

```

Any suggestion?

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [May 2, 2014, 3:05pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/2 "2014-05-02T15:05:53Z")

</div>

Hi

Is it possible for you to include a copy of any scripts you have modified from the default?

Also can you let me know what flavor of Linux (I’m guessing from your output) you are on, and also what run-level are you on (who -r will show you this).

Thanks

Paul

---

<div class="post-metadata">

### Author: ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)
#### Post date: [September 29, 2014, 7:06am UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/3 "2014-09-29T07:06:43Z")

</div>

That’s great news, thanks for the update and let us know if we can assist you in the future.

Salvadore

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [May 2, 2014, 5:54pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/4 "2014-05-02T17:54:50Z")

</div>

Hi

Thanks for these. One thing that is immediately apparent is that you don’t have all of the parameters for the sudo command in your /usr/local/WowzaStreamingEngine/bin/startup.sh.

You have:

```auto
sudo -u wowza $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dcom.wowza.wms.runmode="$mode" -Dcom.wowza.wms.native.base="linux" -Dcom.wowza.wms.AppHome="$WMSAPP_HOME"$

```

The example [here](https://www.wowza.com/docs/how-to-run-wowza-streaming-engine-as-a-named-user-linux-and-os-x) is this:

```auto
sudo -u wowza $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dcom.wowza.wms.runmode="$mode" -Dcom.wowza.wms.native.base="linux" -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap start

```

Looks like some of it may have got trimmed when you copied and pasted.

Paul

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [May 6, 2014, 2:28pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/5 "2014-05-06T14:28:32Z")

</div>

Hi

OK, thanks for these. I’ll take a closer look and get back to you as soon as I can.

Paul

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [May 7, 2014, 1:47pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/6 "2014-05-07T13:47:26Z")

</div>

Hi

We have identified an issue which may be directly related to the problems you are seeing. Once we have completed testing we will be publishing an updated article on this.

Regards

Paul

---

<div class="post-metadata">

### Author: ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)
#### Post date: [May 16, 2014, 10:55am UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/7 "2014-05-16T10:55:53Z")

</div>

> any news?

Hi ffalica. Thanks for your patience and for reporting this originally. We now have an [updated article](https://www.wowza.com/docs/how-to-run-wowza-streaming-engine-as-a-named-user-linux-and-os-x%28Linux-and-OS-X%29) which we believe addresses the issue. The additional steps introduced are at 3[g] and 3[h].

Regards

Paul

---

<div class="post-metadata">

### Author: ![Francesco\_Fallica](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Francesco\_Fallica](https://community.wowza.com/u/Francesco_Fallica)
#### Post date: [May 2, 2014, 6:30pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/8 "2014-05-02T18:30:05Z")

</div>

Hi Paul, many thanks for your quick reply.

I’m using CentOS 6.4 x64

```auto
# uname -a
Linux myfido01 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

```

run-level

```auto
# who -r
run-level 3 2014-05-02 15:12

```

/usr/local/WowzaStreamingEngine/bin/startup.sh

```auto
#!/bin/bash
# check for root access. If not, put up message and exit
#if ["$(/usr/bin/id -u)" -ne "0"] ; then
# echo "The Wowza Streaming Engine requires root access to start. Please run script again using sudo."
# exit
#fi
. ./setenv.sh
mode=standalone
if ["$#" -eq 1];
then
mode=$1
fi
#chmod 600 ../conf/jmxremote.password
#chmod 600 ../conf/jmxremote.access
# NOTE: Here you can configure the JVM's built in JMX interface.
# See the "Server Management Console and Monitoring" chapter
# of the "User's Guide" for more information on how to configure the
# remote JMX interface in the [install-dir]/conf/Server.xml file.
JMXOPTIONS=-Dcom.sun.management.jmxremote=true
#JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.port=1099"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access"
ulimit -n 20000 > /dev/null 2>&1
rc=144
while [$rc -eq 144]
do
WMSTUNE_OPTS=`$WMSAPP_HOME/bin/tune.sh $mode`
# log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify
sudo -u wowza $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dcom.wowza.wms.runmode="$mode" -Dcom.wowza.wms.native.base="linux" -Dcom.wowza.wms.AppHome="$WMSAPP_HOME"$
rc=$?
done

```

/usr/local/WowzaStreamingEngine/bin/wms.sh

```auto
#!/bin/bash
# NOTE: Here you can configure the JVM's built in JMX interface.
# See the "Server Management Console and Monitoring" chapter
# of the "User's Guide" for more information on how to configure the
# remote JMX interface in the [install-dir]/conf/Server.xml file.
JMXOPTIONS=-Dcom.sun.management.jmxremote=true
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.port=1099"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access"
#JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7"
if ["$WMSCOMMAND" != "start"]; then
        JMXOPTIONS=""
fi
ulimit -n 20000
rc=144
while [$rc -eq 144]
do
WMSTUNE_OPTS=`$WMSAPP_HOME/bin/tune.sh $mode`
# log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify
sudo -u wowza $_EXECJAVA $WMSTUNE_OPTS $JMXOPTIONS -Dcom.wowza.wms.runmode="service" -Dcom.wowza.wms.native.base="linux" -Dcom.wowza.wms.AppHome="$WMSAPP_HOM$
PID=$!
if ["$WMSCOMMAND" = "start"]; then
    while [-z "$WOWZA_PID"]
    do
      	WOWZA_PID=$(ps --no-headers -o pid --ppid $PID)
    done
    echo $WOWZA_PID > ${WMSPIDFILE}
    wait $!
fi
rc=$?
if [$rc -eq 10] ; then
        sudo -u wowza $_EXECJAVA -cp "$WMSAPP_HOME/lib/slf4j-api-1.6.4.jar:$WMSAPP_HOME/lib/slf4j-log4j12-1.6.4.jar:$WMSAPP_HOME/lib/wms-xstream-1.4.5.jar:$W$
        rc=$?
fi
done
if ["$WMSCOMMAND" = "start"] ; then
WMSBASE_NAME=WowzaStreamingEngine
WMSLOCK_FILE="/var/run/$WMSBASE_NAME"
if test -w "/var/lock/subsys" ; then
WMSLOCK_FILE="/var/lock/subsys/$WMSBASE_NAME"
fi
echo $WMSLOCK_FILE > /tmp/enc.txt
rm -f $WMSLOCK_FILE
fi
exit 0

```

/usr/local/WowzaStreamingEngine/manager/bin/startmgr.sh

```auto
#!/bin/bash
# NOTE: Here you can configure the JVM's built in JMX interface.
# See the "Server Management Console and Monitoring" chapter
# of the "User's Guide" for more information on how to configure the
# remote JMX interface in the [install-dir]/conf/Server.xml file.
export _EXECJAVA=java
if [-d /Library/WowzaStreamingEngine]
then
    	# OS X
	export WMSMGR_HOME=/Library/WowzaStreamingEngine/manager
else
    	# Linux
        export WMSMGR_HOME=/usr/local/WowzaStreamingEngine/manager
        ulimit -n 20000
fi
JMXOPTIONS=-Dcom.sun.management.jmxremote=true
#JMXOPTIONS="$JMXOPTIONs
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.ssl=false"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.password.file=$WMSCONFIG_HOME/conf/jmxremote.password"
#JMXOPTIONS="$JMXOPTIONS -Dcom.sun.management.jmxremote.access.file=$WMSCONFIG_HOME/conf/jmxremote.access"
#JMXOPTIONS="$JMXOPTIONS -Djava.rmi.server.hostname=192.168.1.7"
BACKGRND=" > /dev/null"
RUNCMD="`which nohup` "
if ["$WMSMGRCOMMAND" != "start"]; then
        JMXOPTIONS=""
fi
rc=0
#while [$rc -eq 0]
#do
# log interceptor com.wowza.wms.logging.LogNotify - see Javadocs for ILogNotify
CMD="$_EXECJAVA -Dcom.wowza.wms.ConfigURL=\"\" -Dcom.wowza.wms.ConfigHome=$WMSMGR_HOME -Djava.io.tmpdir=$WMSMGR_HOME/temp -Dlog4j.configuration=file://$WMSMG$
        if ["$WMSMGRCOMMAND" = "start"]; then
           $RUNCMD sudo -u wowza $CMD $BACKGRND &
        else
           sudo -u wowza $CMD
        fi
PID=$!
rc=$?
if ! [-d /Library/WowzaStreamingEngine]
then
    	# Linux
        if ["$WMSMGRCOMMAND" = "start"]; then
                while [-z "$WOWZA_PID"]
                do
                  	WOWZA_PID=$(ps --no-headers -o pid --ppid $PID)
                done
                echo $WOWZA_PID > ${WMSMGRPID_FILE}
                wait $PID
        fi
	if ["$WMSMGRCOMMAND" = "start"] ; then
                WMSMGRBASE_NAME=WowzaStreamingEngineManager
                WMSMGRLOCK_FILE="/var/run/$WMSMGRBASE_NAME"
                if test -w "/var/lock/subsys" ; then
                        WMSMGRLOCK_FILE="/var/lock/subsys/$WMSMGRBASE_NAME"
                fi
                echo $WMSMGRLOCK_FILE > /tmp/enc.txt
                rm -f $WMSMGRLOCK_FILE
        fi
	serviceName=$WowzaMGRVersion
#	service $serviceName stop >/dev/null
fi
#done
exit 0

```

---

<div class="post-metadata">

### Author: ![Francesco\_Fallica](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Francesco\_Fallica](https://community.wowza.com/u/Francesco_Fallica)
#### Post date: [May 5, 2014, 11:14am UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/9 "2014-05-05T11:14:38Z")

</div>

Hi Paul, i apologize, it’s just copy/paste error.

These are correct files:

[https://www.dropbox.com/sh/5jkeo9oiyocofiu/YTFGrJbvCg](https://www.dropbox.com/sh/5jkeo9oiyocofiu/YTFGrJbvCg)

---

<div class="post-metadata">

### Author: ![Francesco\_Fallica](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Francesco\_Fallica](https://community.wowza.com/u/Francesco_Fallica)
#### Post date: [May 7, 2014, 1:35pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/10 "2014-05-07T13:35:17Z")

</div>

Many thanks, i’m waiting for news.

---

<div class="post-metadata">

### Author: ![Francesco\_Fallica](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Francesco\_Fallica](https://community.wowza.com/u/Francesco_Fallica)
#### Post date: [May 8, 2014, 12:19pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/11 "2014-05-08T12:19:53Z")

</div>

please send me the link to the article when you find a solution

---

<div class="post-metadata">

### Author: ![Francesco\_Fallica](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Francesco\_Fallica](https://community.wowza.com/u/Francesco_Fallica)
#### Post date: [May 15, 2014, 6:14pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/12 "2014-05-15T18:14:24Z")

</div>

any news?

---

<div class="post-metadata">

### Author: ![Francesco\_Fallica](https://avatars.discourse-cdn.com/v4/letter/f/c5a1d2/32.png) [@Francesco\_Fallica](https://community.wowza.com/u/Francesco_Fallica)
#### Post date: [September 29, 2014, 1:50pm UTC](https://community.wowza.com/t/wowza-doesnt-start-at-boot/42939/13 "2014-09-29T13:50:05Z")

</div>

> Hi ffalica. Thanks for your patience and for reporting this originally. We now have an [updated article](https://www.wowza.com/docs/how-to-run-wowza-streaming-engine-as-a-named-user-linux-and-os-x%28Linux-and-OS-X%29) which we believe addresses the issue. The additional steps introduced are at 3[g] and 3[h].
> 
> Regards
> 
> Paul

Sorry if I reply late. I had not seen your response.

I solved my problems. thanks
