feat(inspircd): configure proper logging directory

- Ensure log directory exists via systemd LogsDirectory
- Update log path to use absolute path /var/log/inspircd/ircd.log
This commit is contained in:
♥ Minnie ♥ 2025-12-20 19:32:20 +08:00
parent 6f64840eb1
commit 61e348a83f
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
2 changed files with 4 additions and 1 deletions

View file

@ -4,6 +4,9 @@
config = builtins.readFile ./inspircd.conf; config = builtins.readFile ./inspircd.conf;
}; };
# Ensure log directory exists
systemd.services.inspircd.serviceConfig.LogsDirectory = "inspircd";
environment.etc = { environment.etc = {
"inspircd/inspircd.motd".source = ./inspircd.motd; "inspircd/inspircd.motd".source = ./inspircd.motd;
}; };

View file

@ -589,7 +589,7 @@
# The following log tag is highly default and uncustomised. It is recommended you # The following log tag is highly default and uncustomised. It is recommended you
# sort out your own log tags. This is just here so you get some output. # sort out your own log tags. This is just here so you get some output.
<log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="ircd.log"> <log method="file" type="* -USERINPUT -USEROUTPUT" level="default" target="/var/log/inspircd/ircd.log">
#-#-#-#-#-#-#-#-#-#-#-#-#- WHOWAS OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-# #-#-#-#-#-#-#-#-#-#-#-#-#- WHOWAS OPTIONS -#-#-#-#-#-#-#-#-#-#-#-#-#
# # # #