diff options
Diffstat (limited to 'frontends/etc')
| -rw-r--r-- | frontends/etc/gorum.json.tpl | 16 | ||||
| -rwxr-xr-x | frontends/etc/rc.d/gorum.tpl | 16 |
2 files changed, 32 insertions, 0 deletions
diff --git a/frontends/etc/gorum.json.tpl b/frontends/etc/gorum.json.tpl new file mode 100644 index 0000000..3065c74 --- /dev/null +++ b/frontends/etc/gorum.json.tpl @@ -0,0 +1,16 @@ +{ + "StateDir": "/var/run/gorum", + "Address": "<%= $hostname.'.'.$domain %>:4321", + "Nodes": { + "Blowfish": { + "Hostname": "blowfish.buetow.org", + "Port": 4321, + "Priority": 100 + }, + "Fishfinger": { + "Hostname": "fishfinger.buetow.org", + "Port": 4321, + "Priority": 50 + } + } +} diff --git a/frontends/etc/rc.d/gorum.tpl b/frontends/etc/rc.d/gorum.tpl new file mode 100755 index 0000000..73b92c3 --- /dev/null +++ b/frontends/etc/rc.d/gorum.tpl @@ -0,0 +1,16 @@ +#!/bin/ksh + +daemon="/usr/local/bin/gorum" +daemon_flags="-cfg /etc/gorum.json" +daemon_user="_gorum" + +. /etc/rc.d/rc.subr + +rc_reload=NO + +rc_pre() { + install -d -o _gorum /var/log/gorum + install -d -o _gorum /var/run/gorum/cache +} + +rc_cmd $1 & |
