Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAndris Mednis <Andris.Mednis@zabbix.com>2012-06-05 12:52:43 +0400
committerAndris Mednis <Andris.Mednis@zabbix.com>2012-06-05 12:52:43 +0400
commitd779f8c6516b704fd44ce04265ffe174e9bdd07f (patch)
tree394e27ad8eb778367d0e048a1cc7748d709d3c24 /misc
parent3834b761b05e7bdbea11447c56b091b5c0532a29 (diff)
....I..... [ZBX-5058] updated init.d (rc.d) scripts for FreeBSD
Diffstat (limited to 'misc')
-rwxr-xr-xmisc/init.d/freebsd/zabbix_agentd5
-rwxr-xr-xmisc/init.d/freebsd/zabbix_server5
2 files changed, 8 insertions, 2 deletions
diff --git a/misc/init.d/freebsd/zabbix_agentd b/misc/init.d/freebsd/zabbix_agentd
index c092d72b797..ffb0ccb4ba5 100755
--- a/misc/init.d/freebsd/zabbix_agentd
+++ b/misc/init.d/freebsd/zabbix_agentd
@@ -1,10 +1,13 @@
#!/bin/sh
+# REQUIRE: DAEMON
+# PROVIDE: zabbix_agentd
+
. /etc/rc.subr
name="zabbix_agentd"
-load_rc_config ${name}
rcvar=`set_rcvar`
command="${prefix:-"/usr/local"}/sbin/${name}"
+load_rc_config ${name}
run_rc_command "$1"
diff --git a/misc/init.d/freebsd/zabbix_server b/misc/init.d/freebsd/zabbix_server
index ee6d9ed090a..314ffc8e222 100755
--- a/misc/init.d/freebsd/zabbix_server
+++ b/misc/init.d/freebsd/zabbix_server
@@ -1,10 +1,13 @@
#!/bin/sh
+# REQUIRE: DAEMON
+# PROVIDE: zabbix_server
+
. /etc/rc.subr
name="zabbix_server"
-load_rc_config ${name}
rcvar=`set_rcvar`
command="${prefix:-"/usr/local"}/sbin/${name}"
+load_rc_config ${name}
run_rc_command "$1"