diff options
author | Donny Davies <woodchip@gentoo.org> | 2003-01-28 04:12:20 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2003-01-28 04:12:20 +0000 |
commit | a80f22c4df4400e66b1df4b52921709fed3887f4 (patch) | |
tree | c0013bc89b13fcc02e7ea107fdd49b3aaeb64440 | |
parent | fix #12947, #10745 (diff) | |
download | historical-a80f22c4df4400e66b1df4b52921709fed3887f4.tar.gz historical-a80f22c4df4400e66b1df4b52921709fed3887f4.tar.bz2 historical-a80f22c4df4400e66b1df4b52921709fed3887f4.zip |
add reload() function
-rw-r--r-- | net-fs/samba/ChangeLog | 4 | ||||
-rw-r--r-- | net-fs/samba/files/samba-init | 13 |
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 +} |