* 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:
Jean-Philippe Pialasse 2025-02-25 23:25:06 -05:00
parent 537dbcf295
commit 686f285e94
5 changed files with 2 additions and 36 deletions

View File

@ -1 +0,0 @@
/var/service/tinydns/root

View File

@ -1,27 +0,0 @@
#!/bin/sh
#----------------------------------------------------------------------
# copyright (C) 1999-2003 Mitel Networks Corporation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Technical support for this program is available from Mitel Networks
# Please visit our web site www.mitel.com/sme/ for details.
#----------------------------------------------------------------------
exec \
/usr/bin/setuidgid dnslog \
/usr/bin/multilog t s5000000 \
/var/log/tinydns

View File

@ -1,8 +0,0 @@
#!/bin/sh
exec 2>&1
./control/1
exec envdir ./env sh -c '
exec envuidgid dns \
softlimit -d "$DATALIMIT" \
/usr/local/bin/tinydns
'

View File

@ -447,7 +447,9 @@ if [ $1 -gt 1 ] ; then
if [ -e /var/service/tinydns/run ] ; then if [ -e /var/service/tinydns/run ] ; then
/usr/bin/sv d tinydns /usr/bin/sv d tinydns
/usr/bin/sv d tinydns/log /usr/bin/sv d tinydns/log
fi
fi fi
/sbin/e-smith/create-system-user dns 53 "Name server" /var/service/tinydns /bin/false /sbin/e-smith/create-system-user dns 53 "Name server" /var/service/tinydns /bin/false
/sbin/e-smith/create-system-user dnslog 411 "DNS log user" /var/log /bin/false /sbin/e-smith/create-system-user dnslog 411 "DNS log user" /var/log /bin/false
exit 0 exit 0