mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
Merge pull request #459 from oycol/mipsle_build
openwrt: remove f parameter on ps
This commit is contained in:
commit
018fd4a18d
2 changed files with 6 additions and 6 deletions
|
@ -11,7 +11,7 @@ start() {
|
|||
if [ ! -f "${LOG_FILE}" ];then
|
||||
touch "${LOG_FILE}"
|
||||
fi
|
||||
local PID=$(ps -ef|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}')
|
||||
local PID=$(ps -e|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}')
|
||||
if [ "${PID}" ];then
|
||||
echo "service is running"
|
||||
return
|
||||
|
@ -22,7 +22,7 @@ start() {
|
|||
}
|
||||
|
||||
stop() {
|
||||
local PID=$(ps -ef|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}')
|
||||
local PID=$(ps -e|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}')
|
||||
if [ "${PID}" ];then
|
||||
kill "${PID}"
|
||||
fi
|
||||
|
@ -30,7 +30,7 @@ stop() {
|
|||
}
|
||||
|
||||
status() {
|
||||
local PID=$(ps -ef|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}')
|
||||
local PID=$(ps -e|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}')
|
||||
if [ "${PID}" ];then
|
||||
echo -e "netclient[${PID}] is running \n"
|
||||
else
|
||||
|
|
|
@ -11,7 +11,7 @@ start() {
|
|||
if [ ! -f "${LOG_FILE}" ];then
|
||||
touch "${LOG_FILE}"
|
||||
fi
|
||||
local PIDS=($(ps -ef|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}'))
|
||||
local PIDS=($(ps -e|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}'))
|
||||
if [ ${PIDS} ];then
|
||||
echo "service is running"
|
||||
return
|
||||
|
@ -22,7 +22,7 @@ start() {
|
|||
}
|
||||
|
||||
stop() {
|
||||
local PIDS=($(ps -ef|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}'))
|
||||
local PIDS=($(ps -e|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}'))
|
||||
for i in "${PIDS[@]}"; do
|
||||
kill $i
|
||||
done
|
||||
|
@ -30,7 +30,7 @@ stop() {
|
|||
}
|
||||
|
||||
status() {
|
||||
local PIDS=($(ps -ef|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}'))
|
||||
local PIDS=($(ps -e|grep "netclient checkin -n all"|grep -v grep|awk '{print $1}'))
|
||||
if [ ${PIDS} ];then
|
||||
echo -e "netclient[${PIDS}] is running \n"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue