ports/main/nnd-s6-services/tmpl/ceph

18 lines
371 B
Plaintext
Executable File

#!/bin/execlineb -W
importas -i DAEMON DAEMON
importas -i ID ID
s6-envdir -I /etc/s6/env/path
importas -D "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" PATH PATH
s6-envdir -I /etc/s6/env/ceph
importas -D "/etc/ceph/ceph.conf" CONFIG CONFIG
emptyenv
export PATH $PATH
# Log everything to stdout
fdmove -c 2 1
exec ceph-${DAEMON} -d -i $ID -c $CONFIG