Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Wed Nov 26, 2014 10:54 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Running Services in Linux
PostPosted: Fri Dec 24, 2010 2:48 pm 
Offline

Joined: Thu Dec 02, 2010 10:17 pm
Posts: 75
Hi I am having problems getting a service to work on linux. How would I go about starting the service properly. All the methods I have tried failed.


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu May 12, 2011 2:55 am 
Offline

Joined: Wed May 11, 2011 3:11 pm
Posts: 2
You need to provide more information:

  • What distribution
  • What have you tried
  • How did it fail

There are many many different ways to start services under Linux, some of them easy, some good, some both.

Jason


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Wed Jul 27, 2011 10:59 pm 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
Hi, I have the same question but slightly expanded. How do you install a service (RB 2011R2) on Linux, then how do you access the console ui?

Linux Info:
Welcome to Lapp, TurnKey Linux 11.1 / Ubuntu 10.04 Lucid LTS
System information (as of Thu Jul 28 03:57:15 2011)
System load: 0.21 Memory usage: 27%
Processes: 98 Swap usage: 0%
Usage of /: 2.1% of 52.72GB IP address for eth0: 192.168.0.5
TKLBAM (Backup and Migration): NO BACKUPS
To backup for the first time run the "tklbam-backup" command. For
details see the man page or go to:
http://www.turnkeylinux.org/tklbam
You have new mail.


Does this help? I accessed this info through the Turnkey Linux LAPP Web shell

Thank you!
Tim


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 12:06 am 
Offline
User avatar

Joined: Thu Aug 26, 2010 6:57 am
Posts: 569
Location: Sydney Australia
@tseyfarth

If you are using a LAPP image from TKL (Turnkey Linux) then it is what they refer to as a headless server ie no UI just a command line interface. It is possible to install a UI like "X" but defeats the purpose of its design.

If you need a UI your better off going with Ubuntu Desktop version, then use package manager to install apache, mysql and php.

_________________
Regards

Chris Musty
http://www.specialised.net.au
-----------------------------------------------
if date.shortdate >= 4/6/2013 then
msgbox "I am using Xojo - YAY!!!"
else
msgbox "I am still using RS 12r2.1 - BOO!!!"
end if

Win 8 Pro, Ubuntu 13.04, Mint and Debian(gnome and KDE)
AWS for Hosting and TKL for AMI's


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 12:17 am 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
Hi specialized.
Perhaps I did not explain clearly what I am after. The Lapp headless is fine. I don't want a GUI to Lapp or Linux. I want to add to this install a service app written in RB 2011R2. I know about nothing of Linux, so am asking how to install this service, and also once it is running, how to use/access the service that I install'd console interface.

Perhaps part of my problem is I am not sure I am using the correct terminology...

Thanks again - and BTW, thanks for the "how to" LAMP video - was a HUGE help!

Tim


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 1:25 am 
Offline
User avatar

Joined: Thu Aug 26, 2010 6:57 am
Posts: 569
Location: Sydney Australia
The term service can mean a few things.

From what I guess you want to do - do you mean something that runs on startup or something that is executed periodically?

Generally with "apps" (used very loosely) in linux you need to set permissions and then can execute it from the shell with ./path/to/filename so long as there are admin privileges.

Linux filenames do not have to have extensions to run.

Not sure if that's what you are after.

_________________
Regards

Chris Musty
http://www.specialised.net.au
-----------------------------------------------
if date.shortdate >= 4/6/2013 then
msgbox "I am using Xojo - YAY!!!"
else
msgbox "I am still using RS 12r2.1 - BOO!!!"
end if

Win 8 Pro, Ubuntu 13.04, Mint and Debian(gnome and KDE)
AWS for Hosting and TKL for AMI's


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 2:58 am 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
Service being the type of app that starts and continues to run w/o user aid. RB refers to these also as app types when creating new.

To explain more, I am writing a program, that must start on it's own when the linux os starts and continue to run w/o aid from a user.

The console ui I was referring to, is a means to "occasionally" command the service to tell a "tech" user (this would be an exception, not a norm) certain info. Reading the RB docs, it says that a service is a special type of console app. This is the console ui I was referring to.

Sorry for the apparent bad description/terminology... Not sure where to start on this explanation!

Thanks again.
Tim


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 3:06 am 
Offline
User avatar

Joined: Thu Aug 26, 2010 6:57 am
Posts: 569
Location: Sydney Australia
Have yo got a link for the info you refer to.
I kinda get what your saying but something is missing.

_________________
Regards

Chris Musty
http://www.specialised.net.au
-----------------------------------------------
if date.shortdate >= 4/6/2013 then
msgbox "I am using Xojo - YAY!!!"
else
msgbox "I am still using RS 12r2.1 - BOO!!!"
end if

Win 8 Pro, Ubuntu 13.04, Mint and Debian(gnome and KDE)
AWS for Hosting and TKL for AMI's


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 5:18 pm 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
Hi Specialized - with correct spelling :D

Sorry for the delay in responding - here is a link

http://docs.realsoftware.com/index.php/ServiceApplication

Thanks
Tim


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 5:31 pm 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
WHOOOOPPPPPSS!!!!!!!!! :oops:

I meant to really spell Specialised the way you do! I had just recalled that from your video and was attempting to add some levity with the Australian spelling!
It backfired badly - My apologies!
Tim


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 11:33 pm 
Offline
User avatar

Joined: Thu Aug 26, 2010 6:57 am
Posts: 569
Location: Sydney Australia
I usually just blame auto correct like everyone else :)

_________________
Regards

Chris Musty
http://www.specialised.net.au
-----------------------------------------------
if date.shortdate >= 4/6/2013 then
msgbox "I am using Xojo - YAY!!!"
else
msgbox "I am still using RS 12r2.1 - BOO!!!"
end if

Win 8 Pro, Ubuntu 13.04, Mint and Debian(gnome and KDE)
AWS for Hosting and TKL for AMI's


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Thu Jul 28, 2011 11:45 pm 
Offline

Joined: Sat Dec 04, 2010 9:14 pm
Posts: 918
No, I call it like it is.... my bad. I do apologise.... yea, that was intentional :D

Thoughts on the Service?
I want the service to start on OS start up. Run without user help, continuously. Occassionally a user may need to access its "guts" by either using the Services own console, or with another console that communicates via IPC.

But the first question is, how to install the service so it will start with the OS on start up, and run without user help, continuously.

Thanks again Specialised.
Tim


Top
 Profile  
 
 Post subject: Re: Running Services in Linux
PostPosted: Sat Jul 30, 2011 2:41 am 
Offline
User avatar

Joined: Thu Aug 26, 2010 6:57 am
Posts: 569
Location: Sydney Australia
Hmm, services are contained in the /etc/init.d/ directory.

Typically when I write a script to run from boot I will do the following.

put it in the /etc/init.d/ directory.

Lets say its called FOO

You also have to make the file you created, FOO, executable, using

chmod +x FOO

then run

update-rc.d FOO defaults

Have not used RS to make such a service and not sure if this is the answer.
I will test it and see, when I get some spare time.

_________________
Regards

Chris Musty
http://www.specialised.net.au
-----------------------------------------------
if date.shortdate >= 4/6/2013 then
msgbox "I am using Xojo - YAY!!!"
else
msgbox "I am still using RS 12r2.1 - BOO!!!"
end if

Win 8 Pro, Ubuntu 13.04, Mint and Debian(gnome and KDE)
AWS for Hosting and TKL for AMI's


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group