public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-fs/samba/files: samba-init
@ 2007-09-11 22:55 Roy Marples (uberlord)
  0 siblings, 0 replies; 3+ messages in thread
From: Roy Marples (uberlord) @ 2007-09-11 22:55 UTC (permalink / raw
  To: gentoo-commits

uberlord    07/09/11 22:55:08

  Modified:             samba-init
  Log:
  de-bashify the init script
  (Portage version: 2.1.3.9)

Revision  Changes    Path
1.17                 net-fs/samba/files/samba-init

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba-init?rev=1.17&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba-init?rev=1.17&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-fs/samba/files/samba-init?r1=1.16&r2=1.17

Index: samba-init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- samba-init	8 Sep 2007 12:05:54 -0000	1.16
+++ samba-init	11 Sep 2007 22:55:08 -0000	1.17
@@ -1,7 +1,7 @@
 #!/sbin/runscript
 # Copyright 1999-2007 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.16 2007/09/08 12:05:54 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.17 2007/09/11 22:55:08 uberlord Exp $
 
 opts="reload"
 
@@ -12,9 +12,7 @@
 }
 
 DAEMONNAME="${SVCNAME##samba.}"
-if [[ ${DAEMONNAME} != "samba" ]] ; then
-	daemon_list=${DAEMONNAME}
-fi
+[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME}
 
 signal_do() {
 	local signal="$1"



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-fs/samba/files: samba-init
@ 2010-05-11 11:53 Patrick Lauer (patrick)
  0 siblings, 0 replies; 3+ messages in thread
From: Patrick Lauer (patrick) @ 2010-05-11 11:53 UTC (permalink / raw
  To: gentoo-commits

patrick     10/05/11 11:53:24

  Modified:             samba-init
  Log:
  Fixing init script for #301263
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.18                 net-fs/samba/files/samba-init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?rev=1.18&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?rev=1.18&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?r1=1.17&r2=1.18

Index: samba-init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- samba-init	11 Sep 2007 22:55:08 -0000	1.17
+++ samba-init	11 May 2010 11:53:24 -0000	1.18
@@ -1,7 +1,7 @@
 #!/sbin/runscript
 # Copyright 1999-2007 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.17 2007/09/11 22:55:08 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.18 2010/05/11 11:53:24 patrick Exp $
 
 opts="reload"
 
@@ -33,6 +33,8 @@
 	return ${result}
 }
 start() {
+	# we can't assume that /var/run/ is persistent, so create dir if needed
+	[ ! -e /var/run/samba ] && mkdir /var/run/samba
 	${my_service_PRE}
 	signal_do start && return 0
 	






^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-fs/samba/files: samba-init
@ 2010-08-11 19:52 Tomas Chvatal (scarabeus)
  0 siblings, 0 replies; 3+ messages in thread
From: Tomas Chvatal (scarabeus) @ 2010-08-11 19:52 UTC (permalink / raw
  To: gentoo-commits

scarabeus    10/08/11 19:52:00

  Modified:             samba-init
  Log:
  Rather pass -p to mkdir to avoid any chance of failiture.
  (Portage version: 2.2_rc67/cvs/Linux x86_64)

Revision  Changes    Path
1.19                 net-fs/samba/files/samba-init

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?rev=1.19&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?rev=1.19&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?r1=1.18&r2=1.19

Index: samba-init
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- samba-init	11 May 2010 11:53:24 -0000	1.18
+++ samba-init	11 Aug 2010 19:52:00 -0000	1.19
@@ -1,7 +1,7 @@
 #!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 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.18 2010/05/11 11:53:24 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.19 2010/08/11 19:52:00 scarabeus Exp $
 
 opts="reload"
 
@@ -34,7 +34,7 @@
 }
 start() {
 	# we can't assume that /var/run/ is persistent, so create dir if needed
-	[ ! -e /var/run/samba ] && mkdir /var/run/samba
+	[ ! -e /var/run/samba ] && mkdir -p /var/run/samba
 	${my_service_PRE}
 	signal_do start && return 0
 	






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-08-11 19:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-11 19:52 [gentoo-commits] gentoo-x86 commit in net-fs/samba/files: samba-init Tomas Chvatal (scarabeus)
  -- strict thread matches above, loose matches on Subject: below --
2010-05-11 11:53 Patrick Lauer (patrick)
2007-09-11 22:55 Roy Marples (uberlord)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox