#!/bin/sh
#
# $OpenBSD: samba.rc,v 1.7 2013/05/03 18:43:28 sthen Exp $

# "meta" script running the following rc.d(8) scripts with the given argument;
# note that daemon_flags, daemon_user and daemon_class are not passed to
# the child scripts.
_pkg_scripts="smbd nmbd"

if [ "$1" = stop ]; then
	for _i in ${_pkg_scripts}; do _l="${_i} ${_l}"; done
	_pkg_scripts=${_l% }
fi

for _i in ${_pkg_scripts}; do [[ -x /etc/rc.d/${_i} ]] && /etc/rc.d/${_i} $1; done
