From fe47a79f92a98691f51822ae0a94e572b069d46e Mon Sep 17 00:00:00 2001 From: dd Date: Thu, 28 Jun 2001 03:32:10 +0000 Subject: 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(-) (limited to 'etc') diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index a76b31b..1be9afa 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 717a339..e0315948 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 -- cgit v1.1