Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


well... | 20 comments | Create New Account
Click here to return to the 'well...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
well...
Authored by: nick on Nov 05, '04 01:20:19PM

if you rely on other processes running when you start your programm or your programm running before other programms start you should use the /Library/StartupItems-folder and adapt the StartupParameters.plist-file accordingly. just look for other startupitems and how they're done. p.e.:

mkdir /Library/StartupItems/MyProg
pico /Library/StartupItems/MyProg/MyProg and enter s/t like this:
-----------------------------------------------
#!/bin/sh
## My Prog is started and stopped here:
StartService ()
{
/COMMAND/TO/START/MyProg
}

StopService ()
{
/COMMAND/TO/STOP/MyProg
}
-------------------------------------------
chmod 755 /Library/StartupItems/MyProg/MyProg

if you wanna define some startup-order do:

pico /Library/StartupItems/MyProg/StartupParameters.plit and enter s/t like this (depends on your needs):
-------------------------------------------
{
Description = "My cool Prog";
Provides = ("MyProg");
Requires = ("DirectoryServices");
Uses = ("Disks", "NFS", "Network Time");
OrderPreference = "None";
}
------------------------------------------

shure the other thing works, too. but this is the standart-way to do this on osx and thats the way you get a message in the startup-box when your booting.

n.



[ Reply to This | # ]