auto start shell script needed

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

auto start shell script needed

Postby FERMI » 28. July 2005 14:53

I'm trying to create a "shell script" that automatically boot mampp. Has anyone else had success?
FERMI
 
Posts: 3
Joined: 28. July 2005 14:36

Postby Wiedmann » 28. July 2005 15:03

Search the german part of the forum. I think there is something.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Thank you but I don't read German

Postby FERMI » 28. July 2005 15:11

I can see several "start" related German topics but unfortunately I do not read German. Wish I did. My German friends are really smart.
FERMI
 
Posts: 3
Joined: 28. July 2005 14:36

Postby tak » 28. September 2005 10:03

I got the script from the German part of the forum.
Be ware that it works on osx 10.3 fine,but has problem
restarting and shutting down on osx 10.4.

make a directoy

mkdir /Library/StartupItems/Xampp/

in the directory you need two files;

file one named
StartupParameters.plist
in there write these three lines

Code: Select all
{
Description   = "Xampp";
}


file two named
Xampp
it is a shell script(make it executable)

Code: Select all
#!/bin/sh
. /etc/rc.common
StartService ()
{
ConsoleMessage "Xampp start"
/Applications/xampp/xamppfiles/mampp start
}
StopService ()
{
ConsoleMessage "Xampp stop"
/Applications/xampp/xamppfiles/mampp stop
}
Restart ()
{
ConsoleMessage "Xampp restart"
/Applications/xampp/xamppfiles/mampp restart
}

RunService "$1"
tak
 
Posts: 3
Joined: 08. June 2005 14:43
Location: Kyoto,Japan

It worked - Thank You

Postby FERMI » 05. October 2005 17:51

Thank you. Your suggestion sent me down a path that yield a solution.

It was necessary to expand the StartupParameters.plist to:
{
Description   = "Xampp";
Provides =("Web Server");
Requires =("DirectoryServices");
Requires =(""Disks", "NFS");
Requires =("Web Server");
OrderPreference ="None";
}

and I had to change

RunService "$1"
to
StartService

... because it locked me out of another program at startup, but it works now.

Why where these statements necessary? - I figured this additional bit out by trial and error, and have no clue why these items were necessary. I could use an education if you or anyone had a moment.

Again my thanks :D
FERMI
 
Posts: 3
Joined: 28. July 2005 14:36


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 10 guests