summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarc <marc@openbsd.org>1998-08-18 23:54:41 +0000
committermarc <marc@openbsd.org>1998-08-18 23:54:41 +0000
commit2b4c04175cbf7d7d05fb3fa8bfb6784d224d6590 (patch)
treeacb7f0dbdce015ca1abec113470d8d39637c7e52
parentbye bye old compats (diff)
downloadwireguard-openbsd-2b4c04175cbf7d7d05fb3fa8bfb6784d224d6590.tar.xz
wireguard-openbsd-2b4c04175cbf7d7d05fb3fa8bfb6784d224d6590.zip
allow flags to be passed to apmd at millert's request
-rw-r--r--etc/rc9
-rw-r--r--etc/rc.conf4
2 files changed, 7 insertions, 6 deletions
diff --git a/etc/rc b/etc/rc
index 7c14794cd81..8b47f8fd7e6 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.84 1998/08/18 23:11:15 marc Exp $
+# $OpenBSD: rc,v 1.85 1998/08/18 23:54:41 marc Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -436,9 +436,10 @@ fi
echo -n standard daemons:
-# $apmd is imported from /etc/rc.conf;
-if [ X"${apmd}" == X"YES" -a -x /usr/sbin/apmd ]; then
- echo -n ' apmd'; /usr/sbin/apmd
+# $apmd_flags is imported from /etc/rc.conf;
+# don't run daemon if $apmd_flags == NO or /usr/sbin/apmd doesn't exist
+if [ "X${apmd_flags}" != X"NO" -a -x /usr/sbin/apmd ]; then
+ echo -n ' apmd'; /usr/sbin/apmd ${apmd_flags}
fi
echo -n ' cron'; cron
diff --git a/etc/rc.conf b/etc/rc.conf
index 2f25b813a0a..bc8c5e524e0 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: rc.conf,v 1.24 1998/08/18 23:11:16 marc Exp $
+# $OpenBSD: rc.conf,v 1.25 1998/08/18 23:54:42 marc Exp $
# set these to "NO" to turn them off. otherwise, they're used as flags
routed_flags=NO # for 'normal' use: routed_flags="-q"
@@ -15,6 +15,7 @@ timed_flags=NO # for 'normal' use: timed_flags=""
photurisd_flags=NO # for 'normal' use: photurisd_flags=""
mopd_flags=NO # for 'normal' use: mopd_flags="-a"
httpd_flags=NO # for 'normal' use: httpd_flags=""
+apmd_flags=NO # for 'normal' use: apmd_flags=""
# On some architectures, you must also disable console getty in /etc/ttys
xdm_flags=NO # for 'normal' use: xdm_flags=""
@@ -35,7 +36,6 @@ inetd=YES # almost always needed
lpd=NO # printing daemons
check_quotas=YES # NO may be desireable in some YP environments
sshd=YES # run sshd if it exists
-apmd=NO # run apmd if it exists
# miscellaneous other flags
# only used if the appropriate server is marked YES above