summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
+}