diff options
author | Sadie Powell <sadie@witchery.services> | 2021-06-11 08:23:11 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-06-11 08:23:11 +0100 |
commit | fde23f28014d35dfde9cf3d0912e416b62f3abff (patch) | |
tree | 09a6466310aa1fc14a952947ca1f491bf5384072 | |
parent | 77d5b214fb803bda42733b75d2997978f74c43af (diff) |
Use /run/inspircd as the runtime directory on Linux.insp3
Unfortunately some tooling like AppArmor is not smart enough to
follow the symlink from /var/run to /run so we need to explicitly
set the path. This fixes running InspIRCd without --nopid on some
systems.
See also: inspircd/inspircd-packages#402ef9a411.
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -213,7 +213,7 @@ if (defined $opt_portable) { $config{LOG_DIR} = $opt_log_dir // catdir $config{BASE_DIR}, 'var/log/inspircd'; $config{MANUAL_DIR} = $opt_manual_dir // catdir $config{BASE_DIR}, 'usr/share/man/man1'; $config{MODULE_DIR} = $opt_module_dir // catdir $config{BASE_DIR}, 'usr/lib/inspircd'; - $config{RUNTIME_DIR} = $opt_runtime_dir // catdir $config{BASE_DIR}, 'var/run/inspircd'; + $config{RUNTIME_DIR} = $opt_runtime_dir // catdir $config{BASE_DIR}, $^O eq 'linux' ? '/run/inspircd' : '/var/run/inspircd'; $config{SCRIPT_DIR} = $opt_script_dir // catdir $config{BASE_DIR}, 'usr/share/inspircd'; } else { $config{BASE_DIR} = rel2abs $opt_prefix // $config{BASE_DIR} // catdir $RealDir, 'run'; |