From 051efd2013144227b104e47c08bdc09c2e1508d8 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Wed, 6 Jul 2011 18:55:37 +0000 Subject: Add rc.d(8) script for the system daemons that are restartable. From now on rc(8) is going to call these scripts to start them up on boot in the same order than before. In addition the inetd and rwhod variables in rc.conf are deprecated so that inetd_flags and rwhod_flags should be used. The old flags are still going to be used for some time to allow users to switch. There are more rc modifications to come later so let's put this in so we can base more work on this. It is important to mention that you can still keep using rc.local just like the way you did before, and we have no intention to remove that either. I'd also like to thank ajacoutot@, halex@, sthen@ and schwarze@ for working on this with me. --- etc/rc.d/iked | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 etc/rc.d/iked (limited to 'etc/rc.d/iked') diff --git a/etc/rc.d/iked b/etc/rc.d/iked new file mode 100644 index 00000000000..b564c182435 --- /dev/null +++ b/etc/rc.d/iked @@ -0,0 +1,17 @@ +#!/bin/sh +# +# $OpenBSD: iked,v 1.1 2011/07/06 18:55:36 robert Exp $ + +daemon="/sbin/iked" + +. /etc/rc.d/rc.subr + +pexp="iked:.*parent.*" + +rc_pre() { + [ X"${sasyncd_flags}" != X"NO" ] && \ + daemon_flags="-S ${daemon_flags}" + return 0 +} + +rc_cmd $1 -- cgit v1.2.3