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