-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.example
68 lines (57 loc) · 1.79 KB
/
profile.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env bash
#
# Synopsis:
# Bash profile for typical blobio server admin
# Usage:
# Sourced by both deamon flowd startup scripts and bash_login.
# Note:
# Need to write script purge-bio4d-stat or add
# BLOBIO_BIO4D_RRD_AGE for roll interval.
#
# Need to consider environment var PGSERVICE!
#
# Consider adding syslog support!
#
# Ought to be named profile-bash.example
#
# Also ought to document all required variables.
#
export JMSCOTT_ROOT=/usr/local/jmscott
PATH=$JMSCOTT_ROOT/bin:$PATH
export BLOBIO_ROOT=${BLOBIO_ROOT:=/usr/local/blobio}
export BLOBIO_BIO4D_PORT=${BLOBIO_BIO4D_PORT:=1797}
# log requests that write a blob but not read
export BLOBIO_BIO4D_BRR_MASK=6e
export BLOBIO_SERVICE=${BLOBIO_SERVICE:=bio4:127.0.0.1:$BLOBIO_BIO4D_PORT}
# RIP, sha1
export BLOBIO_ALGORITHM=${BLOBIO_ALGORITHM:=btc20}
PATH=$BLOBIO_ROOT/sbin:$BLOBIO_ROOT/bin:$PATH
#
# Do we trust that the blobs in $BLOBIO_ROOT/data/fs_btc20 have
# correct digests? set BLOBIO_TRUST_FS=true for speedier requests.
#
export BLOBIO_TRUST_FS=${BLOBIO_TRUST_FS:=false}
#
# set sample rate (sec) for stats in run/bio4d.gyr
# 0 disables. note, BLOBIO_BIO4D_RRD_DURATION >= LOG_HEARTBEAT
#
# the script run-stat-report uses run/bio4d.gyr and files mysteriously
# when BLOBIO_BIO4D_RRD_DURATION=0.
#
export BLOBIO_BIO4D_RRD_DURATION=0
#
# set var BLOBIO_GET_SERVICE explicitly for trusted reads from filesystem.
#
# export BLOBIO_GET_SERVICE=fs:$BLOBIO_ROOT
#
unset BLOBIO_GET_SERVICE
# set postgresql variables for flowd.
export PGHOME=${PGHOME:=/usr/local/pgsql}
export PGHOST=${PGHOST:=/tmp}
export PGPORT=${PGPORT:=5432}
export PGUSER=${PGUSER:=$USER}
export PGPASSWORD=${PGPASSWORD:=}
export PGDATABASE=${PGDATABASE:=$USER}
export LD_LIBRARY_PATH=$PGHOME/lib:$LD_LIBRARY_PATH
PATH=$PGHOME/bin:$PATH
ulimit -c unlimited