public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: net-misc/yacy/files/
@ 2024-11-13 13:23 Takuya Wakazono
  0 siblings, 0 replies; only message in thread
From: Takuya Wakazono @ 2024-11-13 13:23 UTC (permalink / raw
  To: gentoo-commits

commit:     3c4c8c200684b215f643839c77feba09434dd767
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Wed Nov 13 13:09:12 2024 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Wed Nov 13 13:15:14 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3c4c8c20

net-misc/yacy: fix bashisms in init script

Closes: https://bugs.gentoo.org/847196
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 net-misc/yacy/files/yacy.rc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/net-misc/yacy/files/yacy.rc b/net-misc/yacy/files/yacy.rc
index 045a045c3..1c292ea97 100644
--- a/net-misc/yacy/files/yacy.rc
+++ b/net-misc/yacy/files/yacy.rc
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 depend() {
@@ -40,7 +40,7 @@ start() {
 
 stop() {
 	ebegin "Shutting down YaCy"
-	sudo -u ${YACY_USER} ${JAVA} ${JAVA_OPTIONS} ${JAVA_ARGS} ${CLASSPATH} net.yacy.yacy -shutdown &> /dev/null &
+	sudo -u ${YACY_USER} ${JAVA} ${JAVA_OPTIONS} ${JAVA_ARGS} ${CLASSPATH} net.yacy.yacy -shutdown >/dev/null 2>&1 &
 	einfon "Waiting ."
 	cnt=0
 	while ( ps ax|grep "^ *$(cat /var/run/yacy.pid)" > /dev/null )
@@ -51,7 +51,7 @@ stop() {
 			exit
 		fi
 		sleep 2
-		echo -n "."
+		printf "."
 	done
 	rm /var/run/yacy.pid
 	echo "done."
@@ -60,7 +60,7 @@ stop() {
 
 status() {
 	if service_started "${myservice}" ; then
-		if ! ps p `cat /var/run/yacy.pid` &> /dev/null ; then
+		if ! ps p `cat /var/run/yacy.pid` >/dev/null 2>&1 ; then
 			eerror "Service seems to be down"
 			return 1
 		fi


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

only message in thread, other threads:[~2024-11-13 13:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 13:23 [gentoo-commits] repo/proj/guru:dev commit in: net-misc/yacy/files/ Takuya Wakazono

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