Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Automatic Web-Dev settings on login

Automatic Web-Dev settings on login
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Göteborg, Sweden
Status: Offline
Reply With Quote
Oct 16, 2001, 12:06 PM
 
Hi!

I'm making some web-programming stuff in Mac OS X, using Apache, Tomcat and mySQL and it works fine. Now I want to organize things on my iMac so i thought if i could make a "webdev" user and when I log in to that user, Apache, Tomcat and mySQL should start automatically but not if I log in to any other users like when you put all startup scripts in /Library/StartUpItems/. I tried put them in /Users/webdev/Library/StartUpItems/ but nothing happened and I tried just to select the startup scripts i System Prefs / Login but then it just opened TextEdit.

Have someone any suggestions about how to do this?

/fredrik
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Oct 16, 2001, 04:17 PM
 
Why not make a script that runs on login (thorugh login items in the System Preferecs) which checks who's login in, and if it's the webdav user, it starts up the stuff u want, otherwise it does nothing.

HTH,
F-bacher
     
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Göteborg, Sweden
Status: Offline
Reply With Quote
Oct 16, 2001, 04:58 PM
 
Yes if you use Login Items in System Preferences you don't need to check if the user is "webdev". Isn't it user independent? The thing is that I can't get the startup scripts to run when I choose them in Login Items. The startup script is just text files with command-line commands like:

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
# Start Tomcat
sh /Library/.../.../startup.sh
...
</font>[/code]
     
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status: Offline
Reply With Quote
Oct 16, 2001, 06:02 PM
 
Oh yeah, I forgot. Did you chmod to executable? (I'm going to guess yes). A weird workaround may be to use an applescript to launch your shell script. Not very efficent, but it would work.

HTH,
F-bacher
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:28 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2