test
This commit is contained in:
12
sambanas/rootfs/etc/s6-overlay/s6-rc.d/smbd/finish
Normal file
12
sambanas/rootfs/etc/s6-overlay/s6-rc.d/smbd/finish
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# Take down the S6 supervision tree based on service exit code
|
||||
# ==============================================================================
|
||||
if [[ "${1}" -ne 0 ]] && [[ "${1}" -ne 256 ]]; then
|
||||
bashio::log.warning "smbd crashed, halting add-on"
|
||||
bashio::log.info "Dump SMB configuration:"
|
||||
cat /etc/samba/smb.conf >&2
|
||||
exec /run/s6/basedir/bin/halt
|
||||
fi
|
||||
|
||||
bashio::log.info "smbd stopped"
|
8
sambanas/rootfs/etc/s6-overlay/s6-rc.d/smbd/run
Normal file
8
sambanas/rootfs/etc/s6-overlay/s6-rc.d/smbd/run
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# ==============================================================================
|
||||
# Start smbd service
|
||||
# ==============================================================================
|
||||
exec smbd \
|
||||
--foreground \
|
||||
--debug-stdout \
|
||||
--no-process-group
|
1
sambanas/rootfs/etc/s6-overlay/s6-rc.d/smbd/type
Normal file
1
sambanas/rootfs/etc/s6-overlay/s6-rc.d/smbd/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
Reference in New Issue
Block a user