mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
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>
This commit is contained in:
parent
3087eeb7ea
commit
7c1ce7e285
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311134
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user