summaryrefslogtreecommitdiff
path: root/roles/base/templates/newsyslog.conf.j2
blob: a8f348d608a8eba1c36820b861e712dbbce0d314 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $OpenBSD: newsyslog.conf - fsa generated
#
# NOTE: SIGHUP has to be sent to syslogd for services whose logs are being written by syslogd
#
# logfile_name		owner:group     mode count size when  flags
/var/cron/log		root:wheel	600  3     10   *     Z
/var/log/authlog	root:wheel	640  7     *    168   Z
/var/log/daemon				640  5     300  *     Z
/var/log/lpd-errs			640  7     10   *     Z
/var/log/maillog			640  7     *    24    Z
/var/log/messages			644  5     300  *     Z
/var/log/secure				600  7     *    168   Z
/var/log/wtmp				644  7     *    $M1D4 B ""
/var/log/xferlog			640  7     250  *     Z
/var/log/pflog				600  3     250  *     ZB "pkill -HUP -u root -U root -t - -x pflogd"
/var/www/logs/access.log	644  4     *    $W0   Z "pkill -USR1 -u root -U root -x httpd"
/var/www/logs/error.log		644  7     250  *     Z "pkill -USR1 -u root -U root -x httpd"
{# for services whose logs are written by syslogd, we need to restart syslogd instead #}
{% if inventory_hostname in (groups['xray']|default([])) + (groups['all_vpns']|default([])) %}
/var/reactance/xray/logs/xray-access.log	640  4     512    *   Z "pkill -HUP -u root -U root -x xray"
/var/reactance/xray/logs/xray-error.log	640  4     512    *   Z "pkill -HUP -u root -U root -x xray"
{% endif %}
{% if not disable_dns|default(true) %}
/var/log/unbound.log		600  5     *    $W0   Z "pkill -HUP -u root -U root -x syslogd"
{% endif %}
{% if inventory_hostname in (groups['ocserv']|default([])) + (groups['all_vpns']|default([])) %}
/var/log/ocserv.log			600  5     128000    *   Z "pkill -HUP -u root -U root -x syslogd"
{% endif %}
{% if inventory_hostname in (groups['trojan']|default([]))  + (groups['vless']|default([])) + (groups['vmess']|default([])) + (groups['all_vpns']|default([])) %}
/var/log/relayd.log         600  5     512    *   Z "pkill -HUP -u root -U root -x syslogd"
{% endif %}