summaryrefslogtreecommitdiffstats
path: root/misc/init.d/freebsd
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-28 13:10:12 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-28 13:10:12 +0000
commitfb8127285b3156270151079a29825130cf85d524 (patch)
tree9fbad665e2e6c6e018de9ad95eeefcaa1a45e15f /misc/init.d/freebsd
parent3a480fb17cd2521600775030a68dabaead2f1979 (diff)
downloadzabbix-fb8127285b3156270151079a29825130cf85d524.tar.gz
zabbix-fb8127285b3156270151079a29825130cf85d524.tar.xz
zabbix-fb8127285b3156270151079a29825130cf85d524.zip
- added startup script for freebsd
git-svn-id: svn://svn.zabbix.com/trunk@4186 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'misc/init.d/freebsd')
-rwxr-xr-xmisc/init.d/freebsd/zabbix_agentd11
-rwxr-xr-xmisc/init.d/freebsd/zabbix_server11
2 files changed, 22 insertions, 0 deletions
diff --git a/misc/init.d/freebsd/zabbix_agentd b/misc/init.d/freebsd/zabbix_agentd
new file mode 100755
index 00000000..230e7dd4
--- /dev/null
+++ b/misc/init.d/freebsd/zabbix_agentd
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. /etc/rc.subr
+
+name="zabbix_agentd"
+load_rc_config ${name}
+rcvar=`set_rcvar`
+command="${prefix:-"/usr/local"}/bin/${name}"
+required_files="/etc/zabbix/${name}.conf"
+
+run_rc_command "$1"
diff --git a/misc/init.d/freebsd/zabbix_server b/misc/init.d/freebsd/zabbix_server
new file mode 100755
index 00000000..6d102d26
--- /dev/null
+++ b/misc/init.d/freebsd/zabbix_server
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+. /etc/rc.subr
+
+name="zabbix_server"
+load_rc_config ${name}
+rcvar=`set_rcvar`
+command="${prefix:-"/usr/local"}/bin/${name}"
+required_files="/etc/zabbix/${name}.conf"
+
+run_rc_command "$1"