Re: How to start Rev by shell or startup item in the background under Mac OS X
Le 3 mai 05, à 02:14, Todd Higgins a écrit : Hi Todd, Hi, Keep in mind that with Tiger (10.4), Apple is providing a new method to start daemons, and other background services -launchd. It is part of the both the client and server. I would imagine that if you were deploying your app on 10.3 or lower you could package it up just like you do for linux. But 10.4 on up it looks like launchd is the way to go. From Apple's website: launchd provides faster startup through a unified framework for starting, stopping and managing daemons, and incorporates inetd, init, mach_init, System Starter and related services. Administrators have a single mechanism for auditing, configuring and setting resources limits on services. Many thanks for this very interesting alert. Will go to the ADC docs to see closely what Apple is proposing in this way to (try to ?) become as confortable as others unixes are in about those kind of tasks ;-) Best, Pierre Regards, Todd On May 2, 2005, at 1:38 PM, Pierre Sahores wrote: 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 -- Todd Higgins ASG Systems Engineer MICRO Technology Groupe, Inc voice: 215-788-6811 fax: 215-788-1766 email: [EMAIL PROTECTED] www: http://www.mtgroupe.com ___ 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
Re: How to start Rev by shell or startup item in the background under Mac OS X
Le 3 mai 05, à 02:58, Brian Yennie a écrit : Brian, Pierre, If you just need access to port 1024, I believe it's possible to make root the owner of the application and have access from a GUI app... but I doubt the app will run without Cocoa. Me too and it's all the problem : i don't want GUI at all... The Linux issues of my Rev apps servers are running lots faster than the Cocoa GUI binded ones and i suspect that they would be able to run lots faster under the Darwin platform too in the unix deamon mode. If that can be done, i will just switch back to linux, in about server-side stuffs... I don't think anything other than the Darwin/CGI engine will run on MacOSX if you cannot have Cocoa or XWindows. A while back I talked to Tuviah about a custom Darwin engine with database external embedded and a fork() command for this specific task but I ended up going a different route. ... I'd say your best (and only other option on MacOS) is to use the Darwin engine. Note that this is not just for CGIs - it can open regular stacks under XWindows. Maybe you could have some sort of XWindows stub libraries installed, or set the DISPLAY to something null. If you could suppress XWindows, it would probably work. Never tested Darwin for yet but, as you say, it's a good time to see if this solution would work. Many thanks for your helpfull input :-) Best Regards, - Brian 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) ? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution -- Bien cordialement, 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
How to start Rev by shell or startup item in the background under Mac OS X
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
Re: How to start Rev by shell or startup item in the background under Mac OS X
On 5/2/05 12:38 PM, Pierre Sahores [EMAIL PROTECTED] wrote: 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) ? Would this help? http://www.sonsothunder.com/devres/revolution/revolution.htm?_proc003 Ken Ray Sons of Thunder Software Web site: http://www.sonsothunder.com/ Email: [EMAIL PROTECTED] ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to start Rev by shell or startup item in the background under Mac OS X
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
Re: How to start Rev by shell or startup item in the background under Mac OS X
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
Re: How to start Rev by shell or startup item in the background under Mac OS X
-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
Re: How to start Rev by shell or startup item in the background under Mac OS X
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 [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 ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to start Rev by shell or startup item in the background under Mac OS X
Hi, Keep in mind that with Tiger (10.4), Apple is providing a new method to start daemons, and other background services -launchd. It is part of the both the client and server. I would imagine that if you were deploying your app on 10.3 or lower you could package it up just like you do for linux. But 10.4 on up it looks like launchd is the way to go. From Apple's website: launchd provides faster startup through a unified framework for starting, stopping and managing daemons, and incorporates inetd, init, mach_init, System Starter and related services. Administrators have a single mechanism for auditing, configuring and setting resources limits on services. Regards, Todd On May 2, 2005, at 1:38 PM, Pierre Sahores wrote: 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 -- Todd Higgins ASG Systems Engineer MICRO Technology Groupe, Inc voice: 215-788-6811 fax: 215-788-1766 email: [EMAIL PROTECTED] www: http://www.mtgroupe.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to start Rev by shell or startup item in the background under Mac OS X
Pierre, If you just need access to port 1024, I believe it's possible to make root the owner of the application and have access from a GUI app... but I doubt the app will run without Cocoa. I don't think anything other than the Darwin/CGI engine will run on MacOSX if you cannot have Cocoa or XWindows. A while back I talked to Tuviah about a custom Darwin engine with database external embedded and a fork() command for this specific task but I ended up going a different route. I'd say your best (and only other option on MacOS) is to use the Darwin engine. Note that this is not just for CGIs - it can open regular stacks under XWindows. Maybe you could have some sort of XWindows stub libraries installed, or set the DISPLAY to something null. If you could suppress XWindows, it would probably work. - Brian 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) ? ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution