Lines 35-42
Link Here
|
35 |
serviio_pid=$(ps -aU ${serviio_user} | awk '/java/ {print $1}') |
35 |
serviio_pid=$(ps -aU ${serviio_user} | awk '/java/ {print $1}') |
36 |
if [ -n "${serviio_pid}" ]; then |
36 |
if [ -n "${serviio_pid}" ]; then |
37 |
echo "${name} is running as pid ${serviio_pid}" |
37 |
echo "${name} is running as pid ${serviio_pid}" |
|
|
38 |
exit 0 |
38 |
else |
39 |
else |
39 |
echo "${name} is not running" |
40 |
echo "${name} is not running" |
|
|
41 |
exit 1 |
40 |
fi |
42 |
fi |
41 |
} |
43 |
} |
42 |
|
44 |
|