Programming :: Startup Script For Red5 Ubuntu 9.04

Aug 1, 2010

I am creating startup script for Red5 on Ubuntu. Red5 is installed in /opt/red5. Following is a working script on a CentOS Box on which Red5 is running

Code:
# = Start init script =
#!/bin/sh
PROG=red5
RED5_HOME=/opt/red5/dist
DAEMON=$RED5_HOME/$PROG.sh
PIDFILE=/var/run/$PROG.pid

# Source function library
. /etc/rc.d/init.d/functions
[ -r /etc/sysconfig/red5 ] && . /etc/sysconfig/red5
RETVAL=0
case "$1" in
start)
echo -n $"Starting $PROG: "
cd $RED5_HOME
$DAEMON >/dev/null 2>/dev/null &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo $! > $PIDFILE
touch /var/lock/subsys/$PROG
fi
[ $RETVAL -eq 0 ] && success $"$PROG startup" || failure $"$PROG startup"
echo
;;
stop)
echo -n $"Shutting down $PROG: "
killproc -p $PIDFILE
RETVAL=$? echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROG
;;
restart)
$0 stop
$0 start
;;
status)
status $PROG -p $PIDFILE
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
RETVAL=1
esac
exit $RETVAL

What do I need to replace for Ubuntu in the above script. As I did not find rc.d/functions on Ubuntu on my laptop also /etc/init.d/functions I did not existed. I would like to be able to use them with service as Red hat distributions do. I checked /lib/lsb/init-functions.

View 3 Replies


ADVERTISEMENT

Server :: How To Install Red5 On Centos5

Apr 7, 2009

I am a newbie on linux and now I just bought a dedicated server using centos5 and for one of my website, webcam chat. I need to install red5.

View 4 Replies View Related

Server :: Install Red5 On A Redhat 9?

Apr 30, 2010

I'm after the easiest way to install red5 on a redhat 9 server?
i have ssh accses is there a apt-get , or a yum command i could run to install it .like urpmi (Im a mandrivia user mostly)
if so what might this command look like?

View 1 Replies View Related

Fedora :: RED5 Build Script Does Not Work On FC10 64 Bit

Nov 11, 2009

I'm trying to install RED5 on FC10. I think FC10 has almost everything java, apache, ant, tomcat, jetty. I've downloaded red-0.6.3.tar.gz from RED5 site. When I try to build it with make command. It shows me these error message and doesn't build it.

[ivy:resolve] You probably access the destination server through a proxy server that is not well configured.
[ivy:resolve] Host red5.googlecode.com not found. [URL]
[ivy:resolve] Host red5.googlecode.com not found. [URL]
[ivy:resolve] module not found: [tomcat | jasper-el | 6.0.14 ]
[ivy:resolve] googlecode: tried no ivy pattern => no attempt to find module descriptor file for [ tomcat | jasper-el | 6.0.14 ]
[ivy:resolve] googlecode: tried artifact [ tomcat | jasper-el | 6.0.14 ]/jasper-el.jar[jar]:
[ivy:resolve] [URL]
[ivy:resolve] [URL]
[ivy:resolve] Host red5.googlecode.com not found. [URL]
[ivy:resolve] Host red5.googlecode.com not found. [URL]
[ivy:resolve] module not found: [ tomcat | tomcat-juli | 6.0.14 ]
[ivy:resolve] googlecode: tried no ivy pattern => no attempt to find module descriptor file for [ tomcat | tomcat-juli | 6.0.14 ]
[ivy:resolve] googlecode: tried artifact [ tomcat | tomcat-juli | 6.0.14 ]/tomcat-juli.jar[jar]:
[ivy:resolve] [URL]
[ivy:resolve] [URL]
and lots more messages....almost 1,000 lines.

I have no idea how to install it. I'm working in Uzbekistan as a volunteer and Internet speed is much slower than everybody expected. This site is using proxy. If ant work only under high speed and reliable internet, what should I do? There is no way to install RED5 without internet? Or my java environments are wrong?

View 3 Replies View Related

Server :: Static Website Needs To Serve Flash / Use Red5 In That?

Jul 27, 2010

I am having static html pages and want to embed some flash videos in them.I have installed Red5 on my server after this what do I do so that I can serve them using Red5.

View 10 Replies View Related

Software :: Red5 - Connection Failed Or Closed Error Message

Apr 29, 2010

Firstly I am new to red5 and not very strong when it comes to linux. I have had installed red5 on my dedicated server and going by the http://myIP:5080/installer demos it is all working fine. My problem is I cannot get it to work with my software being flashchat. I am not sure if it comes from me using the incorrect RTMP url and if so after trying about 20 or more ways of typing it in I always get the same error message "Connection Failed' or "Connection Closed" not to sure what is meant by Closed as to whether it's working but can't get in or what ever. I am after someone who can get this to work for me please and I am willing to pay for that service once it is working.

View 2 Replies View Related

Programming :: Cannot Open Terminal On Startup

Jun 8, 2011

I wanted to write the script which runs at startup and opens the terminal window the moment desktop screen appears(GNU linux).

View 3 Replies View Related

Programming :: Script To Run At Terminal Startup?

Jun 2, 2010

I have written a script to display a message that I wish to run whenever a terminal session is initialized.
The script is working but I am unclear how to implement it.Do I need to create a file called 'gnome-terminal.sh' in /etc/profile.d?

View 1 Replies View Related

Programming :: Lighttpd Startup Script Failing?

Aug 4, 2010

I am using Ubuntu 9.04Following is a startup script I am trying.

Code:
#!/bin/sh
USER=lighttpd

[code]....

View 3 Replies View Related

Programming :: Startup Script Unable To Mount A Partition?

Apr 14, 2010

Is there a way I can run myProgram when desktop appears no matter if root , administrator, desktop user or an unprivileged user logs in? I actually developed a script which I set to run at startup i.e. when the Desktop appears. Script runs finely but can't mount a partition. In the script I mounted a partition using

Code:
sudo mount /dev/sda1 /mnt &> result.txt
After executing script a file named result.txt was created which contained
Code:
sudo: no tty present and no askpass program specified

In other words the mounting failed. If I run the script myself from the terminal using sudo ./myProgram i don't face this problem and the drive gets mounted successfully.

View 6 Replies View Related

Programming :: Single Startup Script For Apache/jboss?

Mar 18, 2011

I have apache ,jboss and jon instances on various linux boxes.I need to create a generic startup script to restart those instances on server reboot.The script requirement is :It should take the name of instances from one text file named active-servers and recycle those instances.1. start-mws-servers (generic script for /etc/rc.d but just create it in ~/bin dir for current testing)It simply searches ~/bin/active-servers for active server recycle scriptsIt executes each recycle script and passes it the 'start' commandIt logs results to /tmp/start-mws-servers.

View 1 Replies View Related

Programming :: How Can An Object File Be Executed Without Startup And Housekeeping

Sep 22, 2009

I came from Windows and I am want to learn how C++ programs are compiled and executed in Linux. I read in "Thinking in C++" that the linker adds (by default) a startup module to the object files that an application should be made of. Now when I use g++, I can create an single object module out of a single source code file then execute it in the terminal like this:

./objectFile.out

How can this object file be executed while it doesn't contain the startup module? In Windows, object files usually get combined into an executable file (somthing.exe) then that executable can be executed, is this not necessary in Linux? does the OS perform required actions before it executes that object file?

View 3 Replies View Related

Programming :: Startup Scripts In Init.d Disappear After Boot Up

Jul 8, 2010

I'm running a Debian based Linux compiled for ARM9 hardware. I am trying to auto start a process on bootup but occasionally I find that my startup script becomes empty (i.e. the file still exists but has not data). The script is located in /etc/init.d/S91-sercom

Here's the script:

Code:
#!/bin/sh # /etc/init.d/S91-sercom
# Start the Serial Communication Protocol Program at boot
echo "Starting Serial Communication"

[Code]....

View 1 Replies View Related

Programming :: Wrote A Driver That Scans On Startup Dynamically For Available EEPROM's On A Certain IC Bus?

Jul 28, 2011

I wrote a driver that scans on startup dynamically for available EEPROM's on a certain IC bus. For each EEPROM a new character device is created in /dev like:

/dev/bus0eepromA0
/dev/bus0eepromA1
/dev/bus0eepromA2 ...

[code]....

View 1 Replies View Related

Programming :: Adjust Startup Script To Start Multiple Portal Servers

Sep 28, 2010

We have 14 portal servers in our environment. Test, Stg deliver and production are in the cluster. They have two nodes in cluster environment. i.e WebSphere_Portal & WebSphere_Portal_2. we have separate script in each portal server to start & stop portal server. Now we wanted to use same script for all servers to start. Here I come to the script:

[code]...

Can any one confirm the script?

View 9 Replies View Related

Programming :: START And STOP Oracle Automatically On System Startup And Shutdown?

Aug 17, 2009

I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora

Code:

#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1

[code]....

View 4 Replies View Related

Programming :: Script To Check Startup For Start Restart Stop Centos?

Jun 16, 2010

I have startup scriptsI want to test themI need a script to do the followingstart restart stop for 100 times (or i can set how many cycle)

View 1 Replies View Related

Ubuntu :: Alsamixer Startup "speaker" Level (and Screen Brightness Startup Level)

May 23, 2010

I just upgraded to the 10.04 and everything works just fine as before (except for skype but that really doesn't matters as it has already been 3 years I'm using ubuntu and I managed to get it to work only once, for miracle I believe ^^). The only real issue I have is this: when I start up my laptop, after the log-in, no sound will be heared as the "speaker" volume level in alsamixer is set to 0; if I raise it from the terminal running alsamixer (as I don't know any other alternative) everything plays just fine, but the next time I boot I do have to do it all over again... So, how can I change the default startup level of the "speaker" in alsamixer?

PS: by the way I do have the very same issue with the screen luminosity but the other way round as is always starts at maximum brightness and I can't manage to get it to start at the minimum, as it did before. At least reducing the backlight if far more quick but a couple of times I forget it and the battery lasted something like half an hour

View 9 Replies View Related

Programming :: 3D Programming - Difference Between JOGL And C++ OpenGL Programming?

Aug 27, 2010

I am interested in learning 3D programming. The thing is, I would hate to put too much effort to learn something that doesn't have future and is dying. My favorite language at the time is Java. My goal is professional programming.

So I have several questions:
1. Should I learn JOGL or start learning C++ and do C++ openGL programming?
2. Is there a big difference between JOGL and C++ openGL programming?
3. Is it worth to learn openGL? Does it have a future?
4. Is it a big difference between openGL and directX coding?
5. If choosing Java, then JOGL or LWJGL?

Why and what is the main difference between them?

View 4 Replies View Related

Ubuntu :: No GUI On The Startup?

Dec 12, 2010

i let the update manager do it's thing and update to 10.10.. well. it asked to restart.. and i let it. Now ubuntu will NOT boot up, it shows the purple ubuntu screen with the dots and then a black screen flashes:

Ubuntu 10.10 cody-A0751h ttyl
cody-A0751h login:

3 times then it stays steady. and i log in and it takes me to a command prompt.I try the Ctrl+Alt+F7.. it shows where it TRIED to start up.. but its just stopped. and i tried startx into the command prompt.. and it errors out..

View 9 Replies View Related

Ubuntu :: Dualscreen On Startup?

Jan 9, 2010

I am using Ubuntu Karmic 9.10 on an acer aspire one. have an old CRT external monitorI cant get dualscreen to work on startup [the way I want it to]No matter what I do, dualscreen starts with the laptop monitor positioned to the right of the external and compiz is turned off. What I want is the external above the laptop monitor and compiz on. I created /etc/X11/Xsession.d/45custom_xrandr-settings as suggested here:http://www.thinkwiki.org/wiki/Xorg_R...te_it_on_loginand put the following in it:

Code:
xrandr --newmode 1440x900_59.90 106.29 1440 1520 1672 1904 900 901 904 932 -HSync +Vsync
xrandr --addmode VGA1 1440x900_59.90

[code]....

View 3 Replies View Related

Ubuntu :: Run A Script At Startup?

Jan 16, 2010

I'm using KeePass with mono under Ubuntu 9.10 and it work fine.

But now I want that it run automatically, so I wrote the script below and inserted it on /etc/init.d and gives it root permission. But when I do login, nothings happen.

Code:

#!/bin/bash
# make KeePass run at startup
mono /home/kelvin/Keepass/KeePass.exe

View 9 Replies View Related

Ubuntu :: Can't Load Any OS At Startup

Jan 22, 2010

When I turn on the computer, the Grub2 shows up and asks me to choose what OS to start. And from today on, whatever I choose, I end up with nothing. When Linux (Ubuntu) is chosen, then the blinking logo is shown (depicting it's loading) and after some time I can only see a black screen. In case when Windows is chosen, the black screen appears immediately. Kive cd works fine but don't know what I could do with it. A week ago I changed a booting order in my BIOS, so that GRUB2 is loading very fast now. Then I also chose: sudo dkpg-reconfigure grub-pc and selected the disk that had my boot partition. For a week or so it worked fine.

View 9 Replies View Related

Ubuntu :: Apache -- How To *not* Run At Startup

Jan 27, 2010

I'm wanting to install apache so I can learn php, but I don't want it running allthe time. how can I run apache only when I want to

View 4 Replies View Related

Ubuntu :: Slow Startup / Why Is So?

Feb 15, 2010

An other general question,

I have installed ubuntu the same day on 2 PCs, my laptop with an athlon 64 x2 and 4Gb of RAM DDR3 and my very old PC, athlon XP2400 with 1Gb of DDR2 memory (if i remember well)

It starts in 20 seconde on the old PC and around 1 minute on my laptop, honestly it bugs me, any ideas why it is so slow on my laptop? I do have a 2 seconds for grubs, but still...

View 4 Replies View Related

Ubuntu :: How To Mount A NAS To / Mnt On Startup?

Feb 25, 2010

I just bought a DLink 323. I have fun_plug installed and ssh enabled, and it works great.I am having trouble mounting the NAS to an actual location (i.e. /mnt/dlink) I've added the following line to /etc/fstab.

View 4 Replies View Related

Ubuntu :: USB Startup Thumbdrive ?

Mar 5, 2010

I have made a startup USB from an Ubuntu LiveCD already, but I was wondering how I might take a high-capacity thumb drive and install a number of different boot disks on it, from an Ubuntu LiveCD to a bootable floppy, and choose one at startup of the disk, kind of like Grub?

View 2 Replies View Related

Ubuntu :: MPD Won't Start On Startup?

Apr 21, 2010

I've added mpd to System->Preferences->Startup Applications several times and it always just disappears and of course isn't started. I have used both mpd and /usr/bin/mpd as the command. I have done a log search as follows:

Code:
sudo find /var/log -type f -mtime -5 -exec grep -i -e 'mpd' '{}' +

and nothing significant was found, e.g. an error message indicating that the mpd startup command was removed.

View 9 Replies View Related

Ubuntu :: Run Htop On Startup?

May 5, 2010

Is it possible to have htop run automatically after I login? If it's too much to ask, it would be great if that specific htop window is locked on the upper right corner of my screen and is a bit transparent (more opacity).

I'm looking for something similar to this one: [URL]

View 4 Replies View Related

Ubuntu :: U9.04 - Add Program To Startup?

May 24, 2010

I'm currently using Ubuntu 9.04 as operating system. I would like to know how to add a program to startup using the command line?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved