Fix style for a pandora_server sysvinit script
This commit is contained in:
parent
878bffbe22
commit
1f3bfe115c
|
@ -51,14 +51,14 @@ fi
|
||||||
|
|
||||||
# This function replace pidof, not working in the same way in different linux distros
|
# This function replace pidof, not working in the same way in different linux distros
|
||||||
|
|
||||||
function pidof_pandora () (
|
function pidof_pandora () {
|
||||||
# This sets COLUMNS to XXX chars, because if command is run
|
# This sets COLUMNS to XXX chars, because if command is run
|
||||||
# in a "strech" term, ps aux don't report more than COLUMNS
|
# in a "strech" term, ps aux don't report more than COLUMNS
|
||||||
# characters and this will not work.
|
# characters and this will not work.
|
||||||
COLUMNS=300
|
COLUMNS=300
|
||||||
PANDORA_PID=`ps aux | grep "$PANDORA_DAEMON $PANDORA_HOME" | grep -v grep | tail -1 | awk '{ print $2 }'`
|
PANDORA_PID=`ps aux | grep "$PANDORA_DAEMON $PANDORA_HOME" | grep -v grep | tail -1 | awk '{ print $2 }'`
|
||||||
echo $PANDORA_PID
|
echo $PANDORA_PID
|
||||||
)
|
}
|
||||||
|
|
||||||
# Main script
|
# Main script
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue