aboutsummaryrefslogblamecommitdiff
path: root/contrib/snap/daemon.bash
blob: 41d1275de8027ff7eca43312a85d5741cdf797ce (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

              
                                                                            








                                                          
#!/bin/bash -e

export LD_LIBRARY_PATH=${SNAP_LIBRARY_PATH}:${SNAP}/usr/lib/x86_64-linux-gnu
export HOME=${SNAP_DATA}
cd ${SNAP_DATA}

ARGS=
if [ -e "${SNAP_DATA}/etc/monerod.conf" ]; then
	ARGS="--config-file ${SNAP_DATA}/etc/monerod.conf"
fi

exec ${SNAP}/bin/monerod --detach $ARGS