diff options
author | Alexander Leidinger <netchild@FreeBSD.org> | 2014-10-18 06:28:39 +0000 |
---|---|---|
committer | Alexander Leidinger <netchild@FreeBSD.org> | 2014-10-18 06:28:39 +0000 |
commit | afe4280587adb0c4dd48f9f3343dfd95b7019cac (patch) | |
tree | ae25c412a8086c3e49ac541d1210bea49cdfcae4 /net/serviio | |
parent | d7ce2c000e83bb36296c3e66af808df6e20092b2 (diff) | |
download | ports-afe4280587adb0c4dd48f9f3343dfd95b7019cac.tar.gz ports-afe4280587adb0c4dd48f9f3343dfd95b7019cac.zip |
Improve the status command of the rc script:
- return error code if not running [1]
- narrow down which java process to accept as "running"
PR: 193728 [1]
Noticed by: jason.unovitch@gmail.com [1]
Notes
Notes:
svn path=/head/; revision=371092
Diffstat (limited to 'net/serviio')
-rw-r--r-- | net/serviio/Makefile | 2 | ||||
-rw-r--r-- | net/serviio/files/serviio.in | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/net/serviio/Makefile b/net/serviio/Makefile index f3299a81a32e..00e326b1a0df 100644 --- a/net/serviio/Makefile +++ b/net/serviio/Makefile @@ -3,7 +3,7 @@ PORTNAME= serviio PORTVERSION= 1.4.1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net multimedia java www MASTER_SITES= http://download.serviio.org/releases/ EXTRACT_SUFX= -linux.tar.gz diff --git a/net/serviio/files/serviio.in b/net/serviio/files/serviio.in index f119db364b16..c09775032271 100644 --- a/net/serviio/files/serviio.in +++ b/net/serviio/files/serviio.in @@ -32,11 +32,12 @@ stop_cmd="$command -stop" status_cmd=${name}_status serviio_status() { - serviio_pid=$(ps -aU ${serviio_user} | awk '/java/ {print $1}') + serviio_pid=$(ps -wwwaU ${serviio_user} | awk '/java.*org.serviio.MediaServer/ {print $1}') if [ -n "${serviio_pid}" ]; then echo "${name} is running as pid ${serviio_pid}" else echo "${name} is not running" + return 1 fi } |