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 ...@@ -36,12 +36,12 @@ cp -r bootstrap/freebsd/rc.conf.d /etc
cd /root/agent cd /root/agent
if [ -d /usr/local/etc/rc.d ] if [ -d /usr/local/etc/rc.d ]
then 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 fi
if [ ! -f /etc/rc.conf.d/circle_agent ] if [ ! -f /etc/rc.conf.d/agent ]
then then
echo 'circle_agent_enable="YES"' > /etc/rc.conf.d/circle_agent echo 'agent_enable="YES"' > /etc/rc.conf.d/agent
fi fi
service circle_agent start service agent start
...@@ -3,14 +3,14 @@ ...@@ -3,14 +3,14 @@
# $FreeBSD$ # $FreeBSD$
# #
# PROVIDE: circle_agent # PROVIDE: agent
# REQUIRE: DAEMON NETWORKING # REQUIRE: DAEMON NETWORKING
# KEYWORD: shutdown # KEYWORD: shutdown
. /etc/rc.subr . /etc/rc.subr
name="circle_agent" name="agent"
rcvar="circle_agent_enable" rcvar="agent_enable"
pidfile="/var/run/${name}.pid" pidfile="/var/run/${name}.pid"
start_cmd="do_start" start_cmd="do_start"
stop_cmd="do_stop" 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