summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2003-01-28 04:12:20 +0000
committerDonny Davies <woodchip@gentoo.org>2003-01-28 04:12:20 +0000
commitdb113d97c2bf5ca13332c4e65cf261eec50a8532 (patch)
treed2769d2b9e69f18b1050646f9e176c9fce4d00d5 /net-fs
parentfix #12947, #10745 (diff)
downloadgentoo-2-db113d97c2bf5ca13332c4e65cf261eec50a8532.tar.gz
gentoo-2-db113d97c2bf5ca13332c4e65cf261eec50a8532.tar.bz2
gentoo-2-db113d97c2bf5ca13332c4e65cf261eec50a8532.zip
add reload() function
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/samba/ChangeLog4
-rw-r--r--net-fs/samba/files/samba-init13
2 files changed, 15 insertions, 2 deletions
diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog
index d95f6fd97a36..65bdb75f1f17 100644
--- a/net-fs/samba/ChangeLog
+++ b/net-fs/samba/ChangeLog
@@ -1,6 +1,8 @@
# ChangeLog for net-fs/samba
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.25 2002/12/16 18:19:18 woodchip Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.26 2003/01/28 04:12:20 woodchip Exp $
+
+ 27 Jan 2003; Donny Davies <woodchip@gentoo.org> : #14644 adds reload().
*samba-2.2.7a (16 Dec 2002)
diff --git a/net-fs/samba/files/samba-init b/net-fs/samba/files/samba-init
index e61b3ee79cd1..cef393f283ae 100644
--- a/net-fs/samba/files/samba-init
+++ b/net-fs/samba/files/samba-init
@@ -1,7 +1,9 @@
#!/sbin/runscript
# Copyright 1999-2002 Gentoo Technologies, Inc.
# 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.1 2002/05/06 19:57:08 woodchip Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.2 2003/01/28 04:12:20 woodchip Exp $
+
+opts="${opts} reload"
depend() {
need net
@@ -25,3 +27,12 @@ stop() {
result=$(( $result + $? ))
eend $result
}
+
+reload() {
+ ebegin "Reloading samba"
+ killall -HUP smbd &>/dev/null
+ result=$?
+ killall -HUP nmbd &>/dev/null
+ result=$(( $result + $? ))
+ eend $result
+}