You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@openmeetings.apache.org by Alexei Fedotov <al...@gmail.com> on 2012/10/02 09:23:10 UTC
Re: Need Help on Cron Job
Hello Ram,
I cannot help you - you provided no data.
Sorry.
On Mon, Oct 1, 2012 at 11:12 PM, Rammohan Alampally
<ra...@microsharp.net> wrote:
> Hello alexei,
>
> I am unable to access the OM through a browser after I follow your steps...
> Please help me in this...
>
> Regards,
> Ram
>
> On Mon, Oct 1, 2012 at 7:33 PM, Alexei Fedotov <al...@gmail.com>
> wrote:
>>
>> om-demo:~# cat /etc/init.d/red5
>> #! /bin/sh
>> ### BEGIN INIT INFO
>> # Provides: red5
>> # Required-Start: $local_fs $remote_fs $network $syslog $named
>> # Required-Stop: $local_fs $remote_fs $network $syslog $named
>> # Default-Start: 2 3 4 5
>> # Default-Stop: 0 1 6
>> # X-Interactive: true
>> # Short-Description: Start/stop red5 web server
>> ### END INIT INFO
>> #
>> # red5 red5 initscript
>> #
>> # Author: Simon Eisenmann .
>> #
>> set -e
>> LC_MESSAGES=ru_RU.UTF-8
>> LC_CTYPE=ru_RU.UTF-8
>> LANGUAGE=ru_RU.UTF-8
>> PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
>> DESC="Red5 flash streaming server"
>> NAME=red5
>> RED5_HOME=/opt/red5
>> DAEMON=$RED5_HOME/$NAME.sh
>> PIDFILE=/var/run/$NAME.pid
>> SCRIPTNAME=/etc/init.d/$NAME
>> # Gracefully exit if the package has been removed.
>> test -x $DAEMON || exit 0
>> # Read config file if it is present.
>> if [ -r /etc/default/$NAME ]
>> then
>> . /etc/default/$NAME
>> fi
>>
>> #
>> # Function that starts the daemon/service.
>> #
>> d_start() {
>> start-stop-daemon --start -c nobody --pidfile $PIDFILE --chdir
>> $RED5_HOME
>> background --make-pidfile --exec $DAEMON
>> }
>> #
>> # Function that stops the daemon/service.
>> #
>> d_stop() {
>> start-stop-daemon --stop --quiet --pidfile $PIDFILE --name java
>> rm -f $PIDFILE
>> }
>> case "$1" in
>> start)
>> echo -n "Starting $DESC: $NAME"
>> d_start
>> echo "."
>> ;;
>> stop)
>> echo -n "Stopping $DESC: $NAME"
>> d_stop
>> echo "."
>> ;;
>>
>> restart|force-reload)
>> echo -n "Restarting $DESC: $NAME"
>> d_stop
>> sleep 1
>> d_start
>> echo "."
>> ;;
>>
>> *)
>> echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
>> exit 1
>> ;;
>>
>> esac
>> exit 0
>>
>> om-demo:~#
>>
>> On Sun, Sep 30, 2012 at 7:59 PM, Maxim Solodovnik <so...@gmail.com>
>> wrote:
>> > please do _not_ put red5.sh to /etc/init.d
>> >
>> > you need to create script like described here:
>> > http://code.google.com/p/openmeetings/wiki/UbuntuLucidLTS
>> >
>> > starting from "now you need to create a red5 startup script"
>> >
>> > On Sun, Sep 30, 2012 at 10:48 PM, Alexei Fedotov
>> > <al...@gmail.com>wrote:
>> >
>> >> Hello Ram,
>> >>
>> >> the service red5.sh should be placed at /etc/init.d
>> >>
>> >> --
>> >> With best regards / с наилучшими пожеланиями,
>> >> Alexei Fedotov / Алексей Федотов,
>> >> http://dataved.ru/
>> >> +7 916 562 8095
>> >>
>> >>
>> >> On Sun, Sep 30, 2012 at 11:19 AM, Rammohan Alampally
>> >> <ra...@microsharp.net> wrote:
>> >> > Hello Openmeetings Developers,
>> >> >
>> >> > I am using latest OM on Ubuntu 11+ successfully configured.
>> >> > I am able to access the OM through a browser when the red.sh service
>> >> > runs
>> >> > backend. I finally decided to run the service through cron job but I
>> >> > am
>> >> > unable to access the OM through the browser.
>> >> >
>> >> > My OM installed at
>> >> > /opt/red5
>> >> >
>> >> > My red5.sh is also located at /opt/red5/.
>> >> >
>> >> > Please help me to access my OM THROUGH browser with out open the
>> >> > command
>> >> > prompt...Permanent solution is needed...
>> >> > Say for example, if I reboot the system also I need to access the OM
>> >> > thougha browser after successful reboot...
>> >> > Please educate me this...
>> >> >
>> >> >
>> >> > Thanking you in advance...
>> >> > *
>> >> > Regards,
>> >> > Ram*
>> >>
>> >
>> >
>> >
>> > --
>> > WBR
>> > Maxim aka solomax
>
>