opt/samba/samba.rc
Alan Mizrahi 37f93590d8 [notify] samba: port refactoring
The previously bundled libraries are now individual ports, therefore manual
action is needed to upgrade.
IE: pkgrm samba; prt-get depinst samba

/etc/rc.d/samba will now start all samba daemons: smbd, nmbd and winbindd,
previously it didn't start winbindd.  In most cases not all of them are
needed, so now there are also individual scripts to suit all needs.
2015-01-27 20:36:26 +09:00

29 lines
446 B
Bash
Executable File

#!/bin/bash
#
# /etc/rc.d/samba: start/stop all server samba daemons
#
declare -a scripts=('smbd' 'nmbd' 'winbindd')
case $1 in
start|reload|status)
for script in ${scripts[@]}; do
/etc/rc.d/$script $1
done
;;
stop)
# stop in reverse order
for (( i=${#scripts[@]}-1; i>=0; i-- )); do
script=${scripts[i]}
/etc/rc.d/$script $1
done
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 [start|stop|restart|reload|status]"
;;
esac