From: | OpenMacNews <pgsql-general(dot)20(dot)openmacnews(at)spamgourmet(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: pgsql8b5 not launching on OSX system start; otherwise OK |
Date: | 2004-12-03 20:24:07 |
Message-ID: | C00999E6BD7A271F100DA890@tiedgar.internal.presence-group.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
hi tom,
>> however, if i place an identical startup string in my OSX's StartupItem for
>> pgsql & reboot, pgsql does not start on boot.
>
> I was trying to reproduce this on my own machine, but couldn't get out
> of the starting gate. I put an executable shell script into
> "/System Folder/Startup Items", but I couldn't see any evidence that the
> system paid any attention to it at all. Exactly what are you doing to
> tell OSX to run a bit of shell script at boot time?
wrong location/folder name ... 'System Folder' is an OS9 construct
(you haven't installed OS9 and OSX on the same partition, now, have you? tsk,
tsk ... ;-) )
OSX userland startup scripts need to go into
/Library/StartupItems/SCRIPTNAME
(System startup scripts go in '/System/Library/StartupItems/SCRIPTNAME' but we
users are supposed to stay out o' there. BUT, you should always check to make
sure your userland script isn't conflicting with an Apple-installed flavor in
/System/...)
in the SCRIPTNAME dir you need two files:
(1) 'SCRIPTNAME', containing your script
(2) 'StartupParameters/.plist', a test or XML-formatted parameter file
perms/ownership should be:
chown -R root:wheel /Library/StartupItems/SCRIPTNAME
chmod 755 /Library/StartupItems/SCRIPTNAME
chmod 755 /Library/StartupItems/DarkMatter/SCRIPTNAME
chmod 644 /Library/StartupItems/SCRIPTNAME/StartupParameters.plist
fyi: here's an O'Reilly blurb with way more info than you want to know ...
<http://www.macdevcenter.com/pub/a/mac/2003/10/21/startup.html>
HTH!
richard
From | Date | Subject | |
---|---|---|---|
Next Message | Woodchuck Bill | 2004-12-03 20:32:39 | Re: 3rd RFD: comp.databases.postgresql |
Previous Message | Joshua D. Drake | 2004-12-03 19:50:54 | Re: 3rd RFD: comp.databases.postgresql |