Consul with SMF on Solaris
Whilst setting up consul on SmartOS I noticed the packages distributed through pkgsrc were lagging behind a bit and the upstream “distribution” contains only the consul binary.
Running consul -dev
in a tmux window will get boring pretty quickly, so I came up with the following SMF manifest using manifold which supports start, stop and refresh (triggers a configuration reload):
Now import the manifest and start consul:
svccfg import consul.xml
svcadm enable consul
This was tested on SmartOS though it should work just fine on Solaris 10/11 and other illumos distributions.