void-packages/srcpkgs/etcd/files/etcd/run

8 lines
122 B
Bash

#!/bin/sh
export ETCD_DATA_DIR=/var/lib/etcd
export ETCD_NAME=etcd
[ -r conf ] && . ./conf
exec chpst -u etcd:etcd etcd