Ok george I installed the new scrip using the new user nobody curious but I could not find the difference in your script. I am curious, could u point it out later. I was looking for the force-reload section as it appeared you had all of the others mentioned in the wiki.
reset permissions on the /usr/lib/red5 to be owned by nobody recursively chown -R nobody /usr/lib/red5 FYI the issue I was having was not so much the script starting red5 but the inability to upload anything which seemed to be permissions related. I say that because if I start the red5 with the /usr/lib/re5.sh as root I can do uploads of video clips, office docs and the record test also works I did the update-rc.d -f red5 remove and then update-rc.d red5 defaults without any of the previous errors, which is a good sign OK so now with the new scrip installed, computer rebooted here is what we have: ---------------------------------------------------------------------------------- root@openmeeting:/home/judget# /etc/init.d/red5 checkports tcp6 0 0 :::1935 :::* LISTEN 862/java tcp6 0 0 :::9999 :::* LISTEN 862/java tcp6 0 0 :::8088 :::* LISTEN 862/java tcp6 0 0 :::5080 :::* LISTEN 862/java tcp6 0 0 :::58683 :::* LISTEN 862/java tcp6 0 0 127.0.0.1:60071 127.0.0.1:3306 ESTABLISHED 862/java root@openmeeting:/home/judget# /etc/init.d/red5 status start-stop-daemon: unrecognized option '--status' Try 'start-stop-daemon --help' for more information. $red5 is not running root@openmeeting:/home/judget# /etc/init.d/red5 stop root@openmeeting:/home/judget# /etc/init.d/red5 checkports root@openmeeting:/home/judget# root@openmeeting:/home/judget# /etc/init.d/red5 start root@openmeeting:/home/judget# /etc/init.d/red5 checkports tcp6 0 0 :::1935 :::* LISTEN 2061/java tcp6 0 0 :::9999 :::* LISTEN 2061/java tcp6 0 0 :::60633 :::* LISTEN 2061/java tcp6 0 0 127.0.0.1:9999 127.0.0.1:58190 ESTABLISHED 2061/java tcp6 0 0 127.0.1.1:56762 127.0.1.1:60633 ESTABLISHED 2061/java tcp6 0 0 127.0.0.1:58190 127.0.0.1:9999 ESTABLISHED 2061/java tcp6 0 0 127.0.1.1:60633 127.0.1.1:56762 ESTABLISHED 2061/java tcp6 0 0 192.168.0.20:41727 64.95.112.228:80 ESTABLISHED 2061/java root@openmeeting:/home/judget# /etc/init.d/red5 status start-stop-daemon: unrecognized option '--status' Try 'start-stop-daemon --help' for more information. $red5 is not running hmmmmmmmm interresting because it certainly is running as the checkports shows anyway I changed all the permissions back, installed your updated script and now the uploads seem to be working correctly, go-figure?? last night it appeared to be a permissions issue and today everything is ok except for the /etc/init.d/red5 status not returning the proper response I will look for you tonight (your morning) on your server. And thanks for your help. This init scripting is an area of keen interest to me as I want to include this in my Ubuntu Basic Administration course . Again I extend my offer to you to participate in that as your time may allow. ---------------------------------------------------------------------------------------- On Tue, 2012-07-17 at 14:02 +1000, George Kirkham wrote: > Tom, Steve, > > > > Stephen’s installation instructions say to run “update-rc.d red5 > defaults” to allow the script to be run when the server starts up, > but my script was not compliant so this step failed. My apologises. > I have now updated my script so that “update-rc.d red5 defaults” will > work, but you may want to do a “update-rc.d -f red5 remove” first to > remove any previous configuration. > > > > Openmeetings does work running as nobody if all is configured that > way. > > > > You can run OpenMeetings in a variety of ways, but for security > reasons the supported method is to run the /usr/lib/red5/red5.sh > script as nobody, as per the instructions. Please run OpenMeetings as > per the instructions, where the instructions don’t work please report > the issues so they can be fixed. > > > > And you were correct, the /etc/init.d/red5 script has to be run as > root, just like all the other scripts in that folder. > The /etc/init.d/red5 script will start the red5 server running as the > user nobody, if it is configured this way. > > > > NB: It is possible to run red5 on other port numbers than port 5080 > but if you use a port below 1024 then you do need to run OpenMeetings > using a root account. > > > > See these sites for further details; > > http://www.debianadmin.com/manage-linux-init-or-startup-scripts.html > > > > To restate, Stephen’s installation instructions state; > > update-rc.d red5 defaults > > > > And when run against my previous red5 script; > > root@om64u-1:/home/itsupport# update-rc.d red5 defaults > > update-rc.d: warning: /etc/init.d/red5 missing LSB information > > update-rc.d: see <http://wiki.debian.org/LSBInitScripts> > > System start/stop links for /etc/init.d/red5 already exist. > > > > Sadly my red5.ubuntu did not past the requirements for a start up > script so I have had to modify it. > > http://wiki.debian.org/LSBInitScripts states “LSB-compliant init > scripts need to: > > provide, at least, the following actions: start, stop, restart, > force-reload, and status” > > > > After making a change to my red5 script, I had to remove any previous > configurations > > # update-rc.d -f red5 remove > > > > And then I could use update-rc.d to register my script to be run when > the server starts. > > > > > > > > > > Thanks, > > > > George Kirkham > > > > > > > > > From: Tom Judge [mailto:[email protected]] > Sent: Tuesday, 17 July 2012 12:46 PM > To: [email protected] > Subject: RE: Ubuntu Install Guide Update > > > > > OK here is what I am testiung on my system > > I am using georges red5 startup script installed in my /etc/init.d/ > folder > > I made a user named red and added it to the root group > > sudo adduser red5 root > > and bla etc > > then I did a chown -R red5 /usr/lib/red5 > > > finally imodified georges startup script to use the user red instead > of nobody > > > now i will see if this fixes the upload of video and office docs as I > suspect it may > > > > -- > > > > Ubuntu-Head > Tom Judge Ubuntu Head > > Look for us on the web: > > http://learnubuntu.org > http://youtube.com/learnubuntunow > http://twitter.com/#!/learnubuntu > http://facebook.com/tvjudge > <a href="skype:learnubuntu?call">Skype Learnubuntu</a> > > > On Mon, 2012-07-16 at 22:19 -0400, Steve Baumgartner wrote: > > > That is a good question I would like to know also. Is there a way to view the > files you have uploaded in the app without being in a room? > > Steve Baumgartner > Owner > SMB Computers > > M +1 614 743 3166 > Grove City, Ohio, USA > [email protected] > > This e-mail and any files transmitted with it are confidential and intended > solely for the use of the individual or entity to whom they are addressed. > If you have received this e-mail in error please notify the sender > immediately. > > > -----Original Message----- > From: Tom Judge [mailto:[email protected]] > Sent: Monday, July 16, 2012 10:05 PM > To: [email protected] > Subject: RE: Ubuntu Install Guide Update > > Where do uploaded videos and files go I think I have a permissions issue with > the way I installed this build. Nothing will upload and I cant remember where > the target directory is formuploads > > -- > > Ubuntu-Head > Tom Judge Ubuntu Head > > Look for us on the web: > > http://learnubuntu.org > http://youtube.com/learnubuntunow > http://twitter.com/#!/learnubuntu > http://facebook.com/tvjudge > <a href="skype:learnubuntu?call">Skype Learnubuntu</a> > > > > On Tue, 2012-07-17 at 12:01 +1000, George Kirkham wrote: > > Steve, > > > > > > > > Thanks for that, just good to know what works. This script has just > > helped Tom as well. > > > > > > > > I will ask Stephen to check on the line that runs the red5 server. > > > > > > > > Thanks, > > > > > > > > George Kirkham > > > > > > > > > > > > > > > > > > From: Steve Baumgartner [mailto:[email protected]] > > Sent: Tuesday, 17 July 2012 10:37 AM > > To: [email protected] > > Subject: RE: Ubuntu Install Guide Update > > > > > > > > > > The contents of what you sent in the red5.ubuntu > > > > > > > > Steve Baumgartner > > > > Owner > > > > SMB Computers > > > > > > > > M +1 614 743 3166 > > > > Grove City, Ohio, USA > > > > [email protected] > > > > > > > > This e-mail and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they > > are addressed. > > If you have received this e-mail in error please notify the sender > > immediately. > > > > > > > > > > > > > > From: George Kirkham [mailto:[email protected]] > > Sent: Monday, July 16, 2012 8:30 PM > > To: [email protected] > > Subject: RE: Ubuntu Install Guide Update > > > > > > > > > > Steve, > > > > > > > > “Replacing that script fixed the issue”, what did you replace the > > script with ? > > > > > > > > Thanks, > > > > > > > > George Kirkham > > > > > > > > > > > > > > > > > > From: Steve Baumgartner [mailto:[email protected]] > > Sent: Tuesday, 17 July 2012 10:16 AM > > To: [email protected] > > Subject: RE: Ubuntu Install Guide Update > > > > > > > > > > Replacing that script fixed the issue. I had no issue this time. > > > > > > > > Steve Baumgartner > > > > Owner > > > > SMB Computers > > > > > > > > M +1 614 743 3166 > > > > Grove City, Ohio, USA > > > > [email protected] > > > > > > > > This e-mail and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they > > are addressed. > > If you have received this e-mail in error please notify the sender > > immediately. > > > > > > > > > > > > > > From: George Kirkham [mailto:[email protected]] > > Sent: Monday, July 16, 2012 8:04 PM > > To: [email protected] > > Subject: RE: Ubuntu Install Guide Update > > > > > > > > > > Steve, > > > > > > > > If you get issues like that, please report them, 1) because people can > > then advise how to resolve, 2) update the doco, 3) your installation > > is not likely to work correctly if there are issues. > > > > > > > > Thanks, > > > > > > > > George Kirkham > > > > > > > > > > > > > > > > From: [email protected] [mailto:[email protected]] > > Sent: Tuesday, 17 July 2012 10:01 AM > > To: [email protected]; [email protected] > > Subject: Re: Ubuntu Install Guide Update > > > > > > > > > > I always got that the last 4 times I installed. Still works. > > > > Sent from my HTC smartphone on the Now Network from Sprint! > > > > ----- Reply message ----- > > From: "Tom Judge" <[email protected]> > > To: <[email protected]> > > Subject: Ubuntu Install Guide Update > > Date: Mon, Jul 16, 2012 7:47 pm > > > > > > When I try to use the startup script as /etc/init.d/red5 start I get > > this message > > > > > > > judget@openmeeting:/etc/init.d$ sudo /etc/init.d/red5 start > > > start-stop-daemon: --start needs --exec or --startas Try > > > 'start-stop-daemon --help' for more information. > > > > > > This is using Ubuntu 10.04 > > > > -- > > > > Ubuntu-Head > > Tom Judge Ubuntu Head > > > > Look for us on the web: > > > > http://learnubuntu.org > > http://youtube.com/learnubuntunow > > http://twitter.com/#!/learnubuntu > > http://facebook.com/tvjudge > > <a href="skype:learnubuntu?call">Skype Learnubuntu</a> > > > > > > > > On Tue, 2012-07-17 at 00:08 +1000, Stephen Cottham wrote: > > > HI All, > > > > > > > > > > > > Guide has been updated with the following changes: > > > > > > > > > > > > 1) Java install is using a single wget with auto accepting > > cookie > > > – no two step procedure now… nice and simple > > > > > > 2) Fixed issues with symbols being converted when copying and > > > pasting > > > > > > 3) Fixed text wrapping so each command is seen as a single line > > > > > > 4) Various changes to the structure > > > > > > > > > > > > Please let me know if this has now resolved the troubles seen > > > yesterday. > > > > > > > > > > > > > > https://cwiki.apache.org/confluence/download/attachments/27838216/Inst > > alling+OM2.x+On+Ubuntu64+-+Headless.pdf?version=7&modificationDate=134 > > 2447291239 > > > > > > > > > > > > Best Regards > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Stephen Cottham > > > Group IT Manager (Associate) > > > > > > Robert Bird Group > > > Level 5, 333 Ann St > > > Brisbane, Queensland, 4000, Australia > > > > > > Phone: +6173 319 2777 (AUS) > > > > > > Phone: +44207 592 8000 (UK) > > > > > > Fax: +6173 319 2799 > > > > > > > > > > > > Mobile: +61400 756 963 (AUS) > > > > > > Mobile: +447900 918 616 (UK) > > > > > > Web: www.robertbird.com > > > > > > > > > > > > This email and any attachments are confidential and may contain > > > legally privileged information or copyright material. Unless > > expressly > > > stated, confidentiality and/or legal privilege is not intended to be > > > waived by the sending of this email. The contents of this email, > > > including any attachments, are intended solely for the use of the > > > individual or entity to whom they are addressed. If you are not an > > > intended recipient, please contact us immediately by return email > > and > > > then delete both messages. You may not otherwise read, forward, > > copy, > > > use or disclose this email or any attachments. Any views expressed > > in > > > this email are those of the individual sender except where the > > sender > > > expressly, and with authority, states otherwise. It is your > > > responsibility to check any attachments for viruses or defects > > before > > > opening or sending them on. None of the sender or its related > > entities > > > accepts any liability for any consequential damage resulting from > > this > > > email containing computer viruses. > > > > > > > > > > > > > > > Disclaimer added by CodeTwo Exchange Rules www.codetwo.com > > > > > > >
