 |
 |
Automatic Web-Dev settings on login
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Mar 2001
Location: Göteborg, Sweden
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
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
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |