Software /
code /
prosody
Changeset
13463:3ce550ce44ce
util.startup: Don't use not yet existent shutdown procedure when started as root (thanks SigmaTel71)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 24 Mar 2024 21:31:47 +0100 |
parents | 13462:720aed1f5cf2 |
children | 13464:2dbc169aae6a |
files | util/startup.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/util/startup.lua Sun Mar 24 20:39:42 2024 +0100 +++ b/util/startup.lua Sun Mar 24 21:31:47 2024 +0100 @@ -694,7 +694,7 @@ 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