mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
Change pidof in alpine
This commit is contained in:
parent
a5bcda6082
commit
dfff43d4c1
@ -702,7 +702,7 @@ ConfigComponent::Impl::periodicRegistrationRefresh()
|
||||
mainloop->yield(chrono::milliseconds(500));
|
||||
} else {
|
||||
uint next_iteration_in_sec = getConfigurationWithDefault<uint>(
|
||||
20,
|
||||
600,
|
||||
"Config Component",
|
||||
"Refresh config update registration time interval"
|
||||
);
|
||||
|
@ -97,11 +97,17 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
alpine_pid()
|
||||
{
|
||||
ps -ef | grep $1 | grep -v grep | awk '{printf $1 " "}'
|
||||
}
|
||||
|
||||
|
||||
ls -l /etc/ | grep release > /dev/null 2>&1
|
||||
retval=$?
|
||||
if [ $retval -eq 0 ]; then
|
||||
if [ ! -z "$(cat /etc/*release | grep alpine)" ]; then
|
||||
pidof_cmd="pidof"
|
||||
pidof_cmd="alpine_pid"
|
||||
ARCH="alpine"
|
||||
echo "alpine" >${FILESYSTEM_PATH}/watchdog/platform
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user