mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
check if dns-sync is already running
This commit is contained in:
parent
502749a2b9
commit
19cdf5f103
11 changed files with 22 additions and 56 deletions
|
@ -1,3 +1,13 @@
|
|||
# Check if script already running or not
|
||||
is_procces_running() {
|
||||
SCRIPT=$(basename $0)
|
||||
for pid in $(pidof -x $SCRIPT); do
|
||||
if [ $pid != $$ ]; then
|
||||
check_result $E_INUSE "$SCRIPT is already running"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
send_api_cmd() {
|
||||
answer=$(curl -s -k \
|
||||
--data-urlencode "user=$USER" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue