diff options
author | Kim Alvefur <zash@zash.se> | 2024-03-24 21:31:47 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2024-03-24 21:31:47 +0100 |
commit | 78be92ab7033d14fd809f0af80f80bbc0c63cb16 (patch) | |
tree | 5c79a55fb46cb10f8a303743e01b935073df5544 | |
parent | e76620ad107cf3bda9dac444c7caecd2aad708e2 (diff) | |
download | prosody-78be92ab7033d14fd809f0af80f80bbc0c63cb16.tar.gz prosody-78be92ab7033d14fd809f0af80f80bbc0c63cb16.zip |
util.startup: Don't use not yet existent shutdown procedure when started as root (thanks SigmaTel71)
-rw-r--r-- | util/startup.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/startup.lua b/util/startup.lua index 76c901ba..997e599a 100644 --- a/util/startup.lua +++ b/util/startup.lua @@ -694,7 +694,7 @@ function startup.check_user() if pposix.getuid() == 0 and not config.get("*", "run_as_root") then log("error", "Danger, Will Robinson! Prosody doesn't need to be run as root, so don't do it!"); log("error", "For more information on running Prosody as root, see https://prosody.im/doc/root"); - prosody.shutdown("Refusing to run as root", 1); + os.exit(1); -- Refusing to run as root end end |