Introduce syslogd_program and inetd_program variables in case somebody

wants to replace one of those programs.

PR:		13609
Submitted by:	Goran Lowkrantz <goran.lowkrantz@infologigruppen.se>
This commit is contained in:
Dima Dorfman 2001-06-28 03:32:10 +00:00
parent dcd24e2778
commit df4afc8b95
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78905
2 changed files with 5 additions and 2 deletions

View file

@ -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

5
etc/rc
View file

@ -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