Date: Mon, 28 Jan 2013 19:56:46 +0000 (UTC) From: Alexander Leidinger <netchild@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r311134 - in head/net/serviio: . files Message-ID: <201301281956.r0SJukS3097477@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: netchild Date: Mon Jan 28 19:56:45 2013 New Revision: 311134 URL: http://svnweb.freebsd.org/changeset/ports/311134 Log: Add support for the status command in the rc script. The change is inspired by the patch in the PR. PR: ports/169591 Submitted by: Ivan Sy <ivan.sy@shaw.ca> Modified: head/net/serviio/Makefile head/net/serviio/files/serviio.in Modified: head/net/serviio/Makefile ============================================================================== --- head/net/serviio/Makefile Mon Jan 28 18:07:31 2013 (r311133) +++ head/net/serviio/Makefile Mon Jan 28 19:56:45 2013 (r311134) @@ -3,6 +3,7 @@ PORTNAME= serviio PORTVERSION= 1.1 +PORTREVISION= 1 CATEGORIES= net multimedia java www MASTER_SITES= http://download.serviio.org/releases/ EXTRACT_SUFX= -linux.tar.gz Modified: head/net/serviio/files/serviio.in ============================================================================== --- head/net/serviio/files/serviio.in Mon Jan 28 18:07:31 2013 (r311133) +++ head/net/serviio/files/serviio.in Mon Jan 28 19:56:45 2013 (r311134) @@ -26,4 +26,14 @@ command_args="$serviio_args &" stop_cmd="$command -stop" +status_cmd=${name}_status +serviio_status() { + serviio_pid=$(ps -aU ${serviio_user} | awk '/java/ {print $1}') + if [ -n "${serviio_pid}" ]; then + echo "${name} is running as pid ${serviio_pid}" + else + echo "${name} is not running" + fi +} + run_rc_command $1
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301281956.r0SJukS3097477>