]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - html/cgi-bin/pakfire.cgi
pakfire.cgi: Extend the lockfile test
authorLeo-Andres Hofmann <hofmann@leo-andres.de>
Thu, 2 Dec 2021 15:39:52 +0000 (16:39 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Fri, 14 Jan 2022 14:35:52 +0000 (14:35 +0000)
commitd255e2d1c291915ca20e0f57f9d55bc0d7d8dd87
treed360bde89eecc1cc72665f087ba7c27800870e38
parentb4c9d299712dfa9f3d4afed2196283e0a0ba2310
pakfire.cgi: Extend the lockfile test

This implements a function to determine if Pakfire is already running.
It tests the PID and lockfile and can be expanded easily later.
'pidof' checks the full path to avoid confusion.

Removes the unreachable function "refreshpage".

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
html/cgi-bin/pakfire.cgi