diff options
Diffstat (limited to 'contrib/snap/daemon.bash')
-rwxr-xr-x | contrib/snap/daemon.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/contrib/snap/daemon.bash b/contrib/snap/daemon.bash new file mode 100755 index 000000000..41d1275de --- /dev/null +++ b/contrib/snap/daemon.bash @@ -0,0 +1,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 |