How to start Rev by shell or startup item in the background under Mac OS X

Pierre Sahores psahores at easynet.fr
Mon May 2 19:58:14 EDT 2005


Hi Frank,

Le 3 mai 05, à 01:22, Frank D. Engel, Jr. a écrit :

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Theoretically, you could use the rc scripts in the /etc directory to 
> start your app; however, there is an issue with this, where upgrades 
> to the OS can and sometimes do replace these files without asking for 
> permission.

Yeah ! And it's why we have time to time to reinstall or tune some 
.conf files (Apache, Postgres,..).
>
> These files are the 'normal' way to do it with most *NIX platforms, 
> but Apple warns you *not* to use them for OS X.
>
> The "correct" way to do this with Mac OS X is to place things in 
> /Library/StartupItems.
>
> For more details on how to write StartupItems, see this page:
>
> http://www.macdevcenter.com/pub/a/mac/2003/10/21/startup.html
>
Thanks. Will try those ways. No knowed issues with Rev 2.5.1 it self, 
in about this kind of configs ?
>
> StartupItems are launched after the GUI is started, but before the 
> login window appears (or the user is logged in automatically, if the 
> machine is insecurely configured to not display a login window).  They 
> are indeed run as root, and are not supposed to be graphical in nature 
> (they should be faceless background processes -- what UNIX calls 
> daemons and Windows calls "services"...

Thanks again,

Best Regards,

Pierre
>
>
>
> On May 2, 2005, at 7:04 PM, Pierre Sahores wrote:
>
>> Thanks Ken and Brian for the help :-)
>>
>> Unfortunaly, this don't feet the need to be able to start the process 
>> in root protected mode with access to a socket port < 1024. In more 
>> detailled words, is it a way to start a rev application from the 
>> Darwin shell console even if none of Cocoa nor XWindows are launched 
>> (darwin single user console mode start up) ?
>>
>> Best, Pierre
>>
>> Le 2 mai 05, à 23:13, Brian Yennie a écrit :
>>
>>> Pierre,
>>>
>>> If you just want to launch an ordinary MacOSX Rev standalone on 
>>> startup, you can put it in:
>>>
>>> /System/Library/StartupItems/
>>>
>>> You could also put an AppleScript in here to perform all sorts of 
>>> actions.
>>>
>>> Along with Ken's tip, you could hide the GUI and make it a 
>>> background process- although sometimes it is actually nice to have 
>>> an admin interface visible.
>>>
>>> HTH,
>>>
>>> - Brian
>>>
>>>> Hello to All,
>>>>
>>>> I use Rev as a deamon server (alike Apache, PostgreSQL and so on - 
>>>> not just as a CGI engine) under the linux platform in starting 
>>>> stack's instances in the Init System V way. I would be interested 
>>>> to know if anyone can say if it is possible to get the same result 
>>>> under the Mac OS X platform and if yes, how to set up Rev to be 
>>>> able to start it as a deamon application (witch engine and 
>>>> librairies, how to build the start-up adequate component) ?
>>>>
>>>> Any help will be greatly appreciated. Thanks.
>>>>
>>>> Best Regards,
>>>>
>>>> -- 
>>>> Pierre Sahores
>>>>
>>>> 100, rue de Paris
>>>> F - 77140 Nemours
>>>>
>>>> psahores+ at +easynet.fr
>>>> sc+ at +sahores-conseil.com
>>>>
>>>> GSM:   +33 6 03 95 77 70
>>>> Pro:      +33 1 64 45 05 33
>>>> Fax:      +33 1 64 45 05 33
>>>>
>>>> <http://www.sahores-conseil.com/>
>>>>
>>>> WEB/VoD/ACID-DB services over IP
>>>> "Mutualiser les deltas de productivité"
>>>>
>>>>
>>>> _______________________________________________
>>>> use-revolution mailing list
>>>> use-revolution at lists.runrev.com
>>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>>
>>>>
>>>
>>> _______________________________________________
>>> use-revolution mailing list
>>> use-revolution at lists.runrev.com
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>
>>
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
> - -----------------------------------------------------------
> Frank D. Engel, Jr.  <fde101 at fjrhome.net>
>
> $ ln -s /usr/share/kjvbible /usr/manual
> $ true | cat /usr/manual | grep "John 3:16"
> John 3:16 For God so loved the world, that he gave his only begotten 
> Son, that whosoever believeth in him should not perish, but have 
> everlasting life.
> $
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
>
> iD8DBQFCdrY27aqtWrR9cZoRAstTAJ9ZsR5IPKBbYzKlNmQVr2/tVnjeswCdG5FZ
> mxEo9LoBtuDXzm8uDNrXYeM=
> =RArI
> -----END PGP SIGNATURE-----
>
>
>
> ___________________________________________________________
> $0 Web Hosting with up to 200MB web space, 1000 MB Transfer
> 10 Personalized POP and Web E-mail Accounts, and much more.
> Signup at www.doteasy.com
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list