Add run as user and group parameters for the service (#7747)

* Prevent running service as root unless required

* Allow specifying the user to launch service
This commit is contained in:
frytimo
2026-02-18 12:36:08 -04:00
committed by GitHub
parent 379b369a38
commit ba45d527ed
2 changed files with 85 additions and 0 deletions
@@ -5,6 +5,13 @@
*/
class event_guard_service extends service {
/**
* Permit this service to run as root user
*
* @var boolean
*/
protected static $allow_run_as_root = true;
/**
* database object
* @var database