Annotation of ports/net/samba4/pkg/samba.rc, Revision 1.1
1.1 ! kirby 1: #!/bin/sh
! 2: #
! 3: # $OpenBSD: samba.rc,v 1.6 2012/08/25 10:14:37 ajacoutot Exp $
! 4:
! 5: # "meta" script running the following rc.d(8) scripts with the given argument;
! 6: # note that daemon_flags, daemon_user and daemon_class are not passed to
! 7: # the child scripts.
! 8: _pkg_scripts="smbd nmbd"
! 9:
! 10: if [ "$1" = stop ]; then
! 11: for _i in ${_pkg_scripts}; do _l="${_i} ${_l}"; done
! 12: _pkg_scripts=${_l% }
! 13: fi
! 14:
! 15: for _i in ${_pkg_scripts}; do ${RCDIR}/${_i} $1; done
CVSweb