summaryrefslogtreecommitdiff
path: root/sysutils/cfengine2
diff options
context:
space:
mode:
authorben <ben@pkgsrc.org>2004-08-19 17:13:36 +0000
committerben <ben@pkgsrc.org>2004-08-19 17:13:36 +0000
commit52c02b621dc3311232808c669d0579a950e952bc (patch)
tree1b0c0d194f202d5ab42f0078d985964f71a34ff5 /sysutils/cfengine2
parent5d93b3b69b735c05e9296dd80bfa975c629b6794 (diff)
downloadpkgsrc-52c02b621dc3311232808c669d0579a950e952bc.tar.gz
Add startup files missed on update to version 2.0.10.
Diffstat (limited to 'sysutils/cfengine2')
-rw-r--r--sysutils/cfengine2/files/cfenvd.sh15
-rw-r--r--sysutils/cfengine2/files/cfexecd.sh42
-rw-r--r--sysutils/cfengine2/files/cfservd.sh16
3 files changed, 73 insertions, 0 deletions
diff --git a/sysutils/cfengine2/files/cfenvd.sh b/sysutils/cfengine2/files/cfenvd.sh
new file mode 100644
index 00000000000..9ec02f8efbd
--- /dev/null
+++ b/sysutils/cfengine2/files/cfenvd.sh
@@ -0,0 +1,15 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: cfenvd.sh,v 1.1 2004/08/19 17:13:36 ben Exp $
+
+# PROVIDE: cfenvd
+# REQUIRE: cfexecd
+
+. /etc/rc.subr
+
+name="cfenvd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/sysutils/cfengine2/files/cfexecd.sh b/sysutils/cfengine2/files/cfexecd.sh
new file mode 100644
index 00000000000..35550889073
--- /dev/null
+++ b/sysutils/cfengine2/files/cfexecd.sh
@@ -0,0 +1,42 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: cfexecd.sh,v 1.1 2004/08/19 17:13:36 ben Exp $
+#
+# start script for cfexecd
+
+# PROVIDE: cfexecd
+# REQUIRE: network
+
+. /etc/rc.subr
+
+name="cfexecd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="/var/cfengine/inputs/update.conf"
+extra_commands="keygen reload"
+
+cfexecd_keygen()
+{
+ (
+ umask 022
+ if [ -f /var/cfengine/ppkeys/localhost.priv ]; then
+ echo "You already have a host key" \
+ "in /var/cfengine/ppkeys/localhost.priv"
+ else
+ @PREFIX@/sbin/cfkey
+ fi
+ )
+}
+
+cfexecd_precmd()
+{
+ if [ ! -f /var/cfengine/ppkeys/localhost.priv ]; then
+ run_rc_command keygen
+ fi
+}
+
+keygen_cmd=cfexecd_keygen
+start_precmd=cfexecd_precmd
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/sysutils/cfengine2/files/cfservd.sh b/sysutils/cfengine2/files/cfservd.sh
new file mode 100644
index 00000000000..4a7ac82ae5d
--- /dev/null
+++ b/sysutils/cfengine2/files/cfservd.sh
@@ -0,0 +1,16 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: cfservd.sh,v 1.1 2004/08/19 17:13:36 ben Exp $
+
+# PROVIDE: cfservd
+# REQUIRE: cfexecd
+
+. /etc/rc.subr
+
+name="cfservd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="/var/cfengine/inputs/cfservd.conf"
+
+load_rc_config $name
+run_rc_command "$1"