aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kostikov <max@kostikov.co>2021-01-20 22:15:01 +0100
committerMax Kostikov <max@kostikov.co>2021-01-20 22:15:01 +0100
commitad42890a0b32f612a2161366ad63ef0759de84da (patch)
tree03fe1c469fd5f367e12e62cb28d9da8e41d193d4
parentab4455c54c457d2eff773d7b7c1a723489c13bad (diff)
downloadvolse-hubzilla-ad42890a0b32f612a2161366ad63ef0759de84da.tar.gz
volse-hubzilla-ad42890a0b32f612a2161366ad63ef0759de84da.tar.bz2
volse-hubzilla-ad42890a0b32f612a2161366ad63ef0759de84da.zip
Swap key and cat for running pid tracking
-rw-r--r--Zotlabs/Daemon/Expire.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Zotlabs/Daemon/Expire.php b/Zotlabs/Daemon/Expire.php
index 8ca92b6c5..c4ff8aec6 100644
--- a/Zotlabs/Daemon/Expire.php
+++ b/Zotlabs/Daemon/Expire.php
@@ -9,14 +9,14 @@ class Expire {
cli_startup();
- $pid = get_config('expire', 'procid', false);
+ $pid = get_config('procid', 'expire', false);
if ($pid && (function_exists('posix_kill') ? posix_kill($pid, 0) : true)) {
- logger('Expire: procedure already run with pid ' . $pid, LOGGER_DEBUG);
+ logger('procedure already run with pid ' . $pid, LOGGER_DEBUG);
return;
}
$pid = getmypid();
- set_config('expire', 'procid', $pid);
+ set_config('procid', 'expire', $pid);
// perform final cleanup on previously delete items
@@ -101,6 +101,6 @@ class Expire {
logger('Expire: sys: done', LOGGER_DEBUG);
}
- del_config('expire', 'procid');
+ del_config('procid', 'expire');
}
}