summaryrefslogblamecommitdiffstats
path: root/core/modules/dnbd3-proxy-mode/data/opt/openslx/scripts/systemd-dnbd3_proxy
blob: 751e327c904011f2631d8240b7033322eb131664 (plain) (tree)
1
2
3
4
5
6
7
8

          

                                                      


                             
                                                                                        





                                                  
#!/bin/ash

export PATH="$PATH:/opt/openslx/sbin:/opt/openslx/bin"

ERRLOG="/run/dnbd3-proxy.err"

if [ -s "$ERRLOG" ]; then
	exec $(which dnbd3-server) -n --errormsg "$(cat "$ERRLOG")" -c /etc/dnbd3-server
fi

exec $(which dnbd3-server) -n -c /etc/dnbd3-server

exit 1