diff options
author | Christian Andreetta <satya@gentoo.org> | 2004-06-12 14:45:13 +0000 |
---|---|---|
committer | Christian Andreetta <satya@gentoo.org> | 2004-06-12 14:45:13 +0000 |
commit | 207d9beb117b38e204fc3693673a169c5a916fcc (patch) | |
tree | 0717933edb33af388e8406c74294fb565e50db38 /net-fs/samba/files | |
parent | version bump, clean up (Manifest recommit) (diff) | |
download | gentoo-2-207d9beb117b38e204fc3693673a169c5a916fcc.tar.gz gentoo-2-207d9beb117b38e204fc3693673a169c5a916fcc.tar.bz2 gentoo-2-207d9beb117b38e204fc3693673a169c5a916fcc.zip |
minor init script fix: if a daemon doesn't start, stop all companions
Diffstat (limited to 'net-fs/samba/files')
-rw-r--r-- | net-fs/samba/files/samba-init | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net-fs/samba/files/samba-init b/net-fs/samba/files/samba-init index 61080d9333fa..b4b802576a7d 100644 --- a/net-fs/samba/files/samba-init +++ b/net-fs/samba/files/samba-init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2003 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.5 2004/06/11 14:30:14 satya Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.6 2004/06/12 14:45:13 satya Exp $ opts="${opts} reload" @@ -35,7 +35,12 @@ function signal_do { start() { ${my_service_PRE} signal_do start - eend $? + 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} |