On 14-10-24 03:57 AM, Craig R. Skinner wrote:
On 2014-10-24 Fri 15:29 PM |, Worik Stanton wrote:
I installed postgresql (with pkg_add) and it did not change this, I had
to change /etc/rc.local by hand.  Is there some reason why postgresql
should not be started after a reboot?  Have I completely got the wrong
end of the stick?
You're very close.

$ man rc.conf:

Adding to Craig's comments, no, OpenBSD packages generally do NOT modify /etc/rc.conf.local for you. Until very recently, /etc.rc.conf.local was executed as a shell script, so arbitrarily modifying things in a (possibly completely custom) shell script would be a Very Bad Thing. Recent changes mean that /etc/rc.conf.local is now parsed instead of being executed; the format & syntax are now much more constrained, and AFAIK it would be possible for packages to now automatically make changes in a safe(r) way.

However, I still don't expect to see that happen - it just doesn't feel like the OpenBSD way. If you want to run a process, you should have to perform some manual step to cause it to run. Processes that unexpectedly spring into existence at the next reboot are also considered (at least by me) a Bad Thing.

--
-Adam Thompson
 athom...@athompso.net

Reply via email to