-----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.

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


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"...




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

[EMAIL PROTECTED]
[EMAIL PROTECTED]

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@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution



_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


- -----------------------------------------------------------
Frank D. Engel, Jr.  <[EMAIL PROTECTED]>

$ 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@lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to