Comments on: How to Run Orchestrator on FreeBSD https://www.percona.com/blog/how-to-run-orchestrator-on-freebsd/ Mon, 24 Feb 2020 11:54:32 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Ivan Groenewold https://www.percona.com/blog/how-to-run-orchestrator-on-freebsd/#comment-10971855 Mon, 24 Feb 2020 11:54:32 +0000 https://www.percona.com/blog/?p=65244#comment-10971855 Hi Glen, thanks for chiming in. I will update the tutorial based on your comments when I get a chance.

]]>
By: Glen Neff https://www.percona.com/blog/how-to-run-orchestrator-on-freebsd/#comment-10971840 Wed, 19 Feb 2020 15:26:52 +0000 https://www.percona.com/blog/?p=65244#comment-10971840 Sorry, the comment editor butchered my whitespace & formatting.

]]>
By: Glen Neff https://www.percona.com/blog/how-to-run-orchestrator-on-freebsd/#comment-10971839 Wed, 19 Feb 2020 15:25:12 +0000 https://www.percona.com/blog/?p=65244#comment-10971839 One of the beauties of FreeBSD is the project actually follows its own hier(7) man page, unlike. . . just about every Linux Distribution or commercial UNIX platform. The “/” prefix is for for the OS utils to get the OS booted, filesystems mounted, and get on the network. The “/usr” prefix is the rest of the OS, and the “/usr/local” prefix is the default location for ports/package managed software. Your instructions to create a “/usr/local/orchestrator” directory, then break the prefix hierarchy created by it’s own build process, knock heads with this clean separation.

I would instead recommend creating an “/opt” or “/usr/opt” prefix for manually built/installed or commercial software. (I’ll stick with “/usr/opt” for this example.)

Your orchestrator & resources binaries can go into /usr/opt/bin/. Your init script can be “/usr/opt/etc/rc.d/orchestrator” then you can tell the OS about this location by placing this line in /etc/rc.conf:

local_startup=”/usr/local/etc/rc.d /usr/opt/etc/rc.d” # startup script dirs.

You can then add the /usr/opt/bin directory to the system path, if you wish, by modifying /etc/login.conf:

default:\
:passwd_format=sha512:\
:copyright=/etc/COPYRIGHT:\
:welcome=/etc/motd:\
:setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin /usr/opt/bin ~/bin:\

(Don’t forget to run ‘cap_mkdb /etc/login.conf’ to make it official.)

]]>