summaryrefslogtreecommitdiff
path: root/source/n/samba/rc.samba
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/samba/rc.samba')
-rw-r--r--source/n/samba/rc.samba3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/n/samba/rc.samba b/source/n/samba/rc.samba
index 2a28f3e5..5b98b879 100644
--- a/source/n/samba/rc.samba
+++ b/source/n/samba/rc.samba
@@ -10,10 +10,13 @@
samba_start() {
if [ -x /usr/sbin/smbd -a -x /usr/sbin/nmbd -a -r /etc/samba/smb.conf ]; then
+ mkdir -p /var/run/samba
echo "Starting Samba: /usr/sbin/smbd -D"
/usr/sbin/smbd -D
echo " /usr/sbin/nmbd -D"
/usr/sbin/nmbd -D
+ elif [ ! -r /etc/samba/smb.conf ]; then
+ echo "ERROR: cannot start Samba since /etc/samba/smb.conf does not exist"
fi
}