#! /bin/sh # Copyright (c) 1999-2004 SuSE Linux AG, Nuernberg, Germany. # All rights reserved. # # Author: Lars Mueller # # /etc/init.d/smb # and its symbolic link # /usr/sbin/rcsmb # ### BEGIN INIT INFO # Provides: smb # Required-Start: $network $remote_fs $syslog # Should-Start: cupsd winbind nmb # Required-Stop: $network $remote_fs $syslog # Should-Stop: cupsd winbind nmb # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: Samba SMB/CIFS file and print server # Description: Samba SMB/CIFS file and print server ### END INIT INFO SMBD_BIN="/usr/sbin/smbd" SMB_CONF="/etc/samba/smb.conf" PID_FILE="/var/run/samba/smbd.pid" . /etc/rc.status rc_reset # Check for missing binary if [ ! -x ${SMBD_BIN} ]; then echo -n >