From df4afc8b95f7b68eff6438273697796595a1cff0 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Thu, 28 Jun 2001 03:32:10 +0000
Subject: [PATCH] Introduce syslogd_program and inetd_program variables in case
somebody wants to replace one of those programs.
PR: 13609
Submitted by: Goran Lowkrantz
---
etc/defaults/rc.conf | 2 ++
etc/rc | 5 +++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index a76b31b0938f..1be9afaef20a 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -109,8 +109,10 @@ ppp_user="root" # Which user to run ppp as
### Network daemon (miscellaneous) ###
syslogd_enable="YES" # Run syslog daemon (or NO).
+syslogd_program="/usr/sbin/syslogd" # path to syslogd, if you want a different one.
syslogd_flags="-s" # Flags to syslogd (if enabled).
inetd_enable="NO" # Run the network daemon dispatcher (YES/NO).
+inetd_program="/usr/sbin/inetd" # path to inetd, if you want a different one.
inetd_flags="-wW" # Optional flags to inetd
#
# named. It may be possible to run named in a sandbox, man security for
diff --git a/etc/rc b/etc/rc
index 717a3395409d..e0315948f11c 100644
--- a/etc/rc
+++ b/etc/rc
@@ -461,7 +461,8 @@ case ${syslogd_enable} in
fi
rm -f /var/run/log
- echo -n ' syslogd'; syslogd ${syslogd_flags}
+ echo -n ' syslogd';
+ ${syslogd_program:-/usr/sbin/syslogd} ${syslogd_flags}
;;
esac
@@ -591,7 +592,7 @@ case ${inetd_enable} in
[Nn][Oo])
;;
*)
- echo -n ' inetd'; inetd ${inetd_flags}
+ echo -n ' inetd'; ${inetd_program:-/usr/sbin/inetd} ${inetd_flags}
;;
esac