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: ... .. It is advisable to leave rc.conf untouched, and instead create and edit a new rc.conf.local file. Variables set in this file will override variables previously set in rc.conf. The man page then gives an example of dhcpd. /etc/rc 'starts' /etc/rc.d/dhcpd, but its default flag in /etc/rc.conf is 'NO', so it doesn't start. To actually start dhcpd, override its flags in /etc/rc.conf.local $ fgrep dhcpd /etc/rc* /etc/rc:start_daemon relayd dhcpd dhcrelay mrouted dvmrpd /etc/rc.conf:dhcpd_flags=NO # for normal use: "" /etc/rc.conf.local:dhcpd_flags='' Then the man page then covers the 'pkg_scripts' variable, responsible for starting and stopping daemons installed from packages. -- Craig Skinner | http://twitter.com/Craig_Skinner | http://linkd.in/yGqkv7