Commit f6960606 by Czémán Arnold

freebsd: rename circle_agent service to agent

parent 3b82074c
......@@ -36,12 +36,12 @@ cp -r bootstrap/freebsd/rc.conf.d /etc
cd /root/agent
if [ -d /usr/local/etc/rc.d ]
then
cp bootstrap/freebsd/rc.d/circle_agent /usr/local/etc/rc.d
cp bootstrap/freebsd/rc.d/agent /usr/local/etc/rc.d
fi
if [ ! -f /etc/rc.conf.d/circle_agent ]
if [ ! -f /etc/rc.conf.d/agent ]
then
echo 'circle_agent_enable="YES"' > /etc/rc.conf.d/circle_agent
echo 'agent_enable="YES"' > /etc/rc.conf.d/agent
fi
service circle_agent start
service agent start
......@@ -3,14 +3,14 @@
# $FreeBSD$
#
# PROVIDE: circle_agent
# PROVIDE: agent
# REQUIRE: DAEMON NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name="circle_agent"
rcvar="circle_agent_enable"
name="agent"
rcvar="agent_enable"
pidfile="/var/run/${name}.pid"
start_cmd="do_start"
stop_cmd="do_stop"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment