I make a .pkg-installer for a product that extends the Apache server in OS X.
From the postinstall script in the .pkg I'm currently able to configure the default setup of Yosemite and El Capitan, by adding a product.conf file in the /etc/apache2/other
folder.
To load the new configuration I simply do the following from the postinstall script:
launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist #if not loaded
apachectl stop #if already started
apachectl start
Installing the OS X Server changes the way Apache is configured, so the above approach fails. So, how can I configure the OS X Server from my postinstall script to do the same?
product.conf
file. Could you explain what you mean by "fork based on SIP"?launchctl unload
followed bylaunchctl load
without issues.