diff options
Diffstat (limited to 'net-fs/samba/files/samba-init')
-rw-r--r-- | net-fs/samba/files/samba-init | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/net-fs/samba/files/samba-init b/net-fs/samba/files/samba-init deleted file mode 100644 index d66e81ca2b5a..000000000000 --- a/net-fs/samba/files/samba-init +++ /dev/null @@ -1,56 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2004 Gentoo Foundation -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.11 2005/04/28 14:39:50 lanius Exp $ - -opts="${opts} reload" - -depend() { - after slapd - need net - use cupsd -} - -function signal_do { - local signal - signal="$1" - if [ -n "${signal}" ]; then - result=0 - last_result=0 - for daemon in ${daemon_list} - do - cmd=${daemon}_${signal} - cmd_exec="${!cmd}" - if [ -n "${cmd_exec}" ]; then - ebegin "${my_service_name} -> ${signal}: ${daemon}" - #echo ${cmd} '->' ${!cmd} - ${cmd_exec} > /dev/null - last_result=$? - eend ${last_result} - fi - result=$(( ${result} + ${last_result} )) - done - fi - return ${result} -} -start() { - ${my_service_PRE} - signal_do start - result_start=$? - if [ ${result_start} -gt 0 ]; then - ewarn "Error: stopping services (see system logs)" - signal_do stop - fi - eend ${result_start} -} -stop() { - ${my_service_PRE} - signal_do stop - ${my_service_POST} - eend $? -} -reload() { - ${my_service_PRE} - signal_do reload - eend $? -} |