* Tue Feb 25 2025 Jean-Philippe Pialasse <jpp@koozali.org> 11.0.0-7.sme
- move to full systemd unit [SME: 12877]
This commit is contained in:
3
root/etc/e-smith/templates/etc/rsyslog.conf/32tinydns
Normal file
3
root/etc/e-smith/templates/etc/rsyslog.conf/32tinydns
Normal file
@@ -0,0 +1,3 @@
|
||||
#tinydns
|
||||
:programname, isequal, "tinydns" /var/log/tinydns/tinydns.log
|
||||
& stop
|
@@ -0,0 +1,7 @@
|
||||
[Service]
|
||||
{
|
||||
my $datalimit = $tinydns{'DataLimit'} || "3000000";
|
||||
my $ListenIP= $tinydns{'ListenIP'} || "127.0.0.1";
|
||||
$OUT = "LimitDATA=$datalimit\n";
|
||||
$OUT .= 'Environment="DATALIMIT='.$datalimit.'" "IP='.$ListenIP.'" GID=53 UID=53 "ROOT=/var/service/tinydns/root"';
|
||||
}
|
@@ -1,4 +0,0 @@
|
||||
{
|
||||
my $datalimit = $tinydns{'DataLimit'} || "300000";
|
||||
"$datalimit";
|
||||
}
|
@@ -1,3 +0,0 @@
|
||||
{
|
||||
$OUT = $tinydns{'ListenIP'} || "127.0.0.1";
|
||||
}
|
15
root/etc/logrotate.d/tinydns
Normal file
15
root/etc/logrotate.d/tinydns
Normal file
@@ -0,0 +1,15 @@
|
||||
/var/log/tinydns/tinydns.log{
|
||||
weekly
|
||||
rotate 4
|
||||
missingok
|
||||
notifempty
|
||||
compress
|
||||
delaycompress
|
||||
sharedscripts
|
||||
su root root
|
||||
create 600 root root
|
||||
postrotate
|
||||
/usr/bin/systemctl try-restart tinydns.service >/dev/null 2>&1 || true
|
||||
endscript
|
||||
}
|
||||
|
Reference in New Issue
Block a user