I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 944d4676 authored by hypercubus's avatar hypercubus Committed by zzz
Browse files

changed deprecated 'tail -1' to 'tail -n 1'; the Java Service Wrapper team...

changed deprecated 'tail -1' to 'tail -n 1'; the Java Service Wrapper team will probably change it soon, but we need this for 0.4
parent f68271c3
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@ getpid() {
if [ "X$pid" != "X" ]
then
# Verify that a process with this pid is still running.
pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -n 1`
if [ "X$pid" = "X" ]
then
# This is a stale pid file.
......@@ -142,7 +142,7 @@ getpid() {
}
testpid() {
pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -1`
pid=`$PSEXE -p $pid | grep $pid | grep -v grep | awk '{print $1}' | tail -n 1`
if [ "X$pid" = "X" ]
then
# Process is gone so remove the pid file.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment