public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-p2p/saku/files: saku
@ 2013-01-12  4:56 Naohiro Aota (naota)
  0 siblings, 0 replies; only message in thread
From: Naohiro Aota (naota) @ 2013-01-12  4:56 UTC (permalink / raw
  To: gentoo-commits

naota       13/01/12 04:56:54

  Modified:             saku
  Log:
  No longer keepdir /var/run/saku. #451418 ; Fix doc path.
  
  (Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key F8551514)

Revision  Changes    Path
1.2                  net-p2p/saku/files/saku

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/saku/files/saku?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/saku/files/saku?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/saku/files/saku?r1=1.1&r2=1.2

Index: saku
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-p2p/saku/files/saku,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- saku	1 Nov 2011 13:19:45 -0000	1.1
+++ saku	12 Jan 2013 04:56:54 -0000	1.2
@@ -1,7 +1,9 @@
 #!/sbin/runscript
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-p2p/saku/files/saku,v 1.1 2011/11/01 13:19:45 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-p2p/saku/files/saku,v 1.2 2013/01/12 04:56:54 naota Exp $
+
+PID_DIR=/var/run/saku
 
 depend() {
 	use dns
@@ -9,15 +11,16 @@
 }
 
 start() {
-	rm -f /var/run/saku/pid.txt
+	mkdir -p $PID_DIR
+	rm -f ${PID_DIR}/pid.txt
 	ebegin "Starting p2p bbs: saku"
 	start-stop-daemon --start -u saku -g saku --quiet -b \
-	    -p /var/run/saku/pid.txt --exec /usr/bin/saku
+	    -p ${PID_DIR}/pid.txt --exec /usr/bin/saku
 	eend $?
 }
 
 stop() {
 	ebegin "Stopping p2p bbs: saku"
-	start-stop-daemon --stop --quiet -p /var/run/saku/pid.txt
+	start-stop-daemon --stop --quiet -p ${PID_DIR}/pid.txt
 	eend $?
 }





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-12  4:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-12  4:56 [gentoo-commits] gentoo-x86 commit in net-p2p/saku/files: saku Naohiro Aota (naota)

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