-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update rpmspec to bundle vdc-fluentd.
- Loading branch information
Masahiro Fujiwara
committed
Oct 23, 2013
1 parent
5ad6111
commit d810474
Showing
4 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# source common params | ||
[ -f /etc/default/wakame-vdc ] && . /etc/default/wakame-vdc | ||
|
||
# Comment out to run the vdc init script | ||
#RUN=yes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
description "Wakame-VDC: relay fluentd" | ||
author "axsh Co." | ||
|
||
start on vdc-net-device-up | ||
stop on vdc-net-device-down | ||
#start on (started rabbitmq-server) | ||
#stop on (stopped rabbitmq-server or stopped mysql) | ||
|
||
respawn | ||
respawn limit 5 60 | ||
|
||
## agent name | ||
env NAME=fluentd | ||
|
||
script | ||
[ -f /etc/default/vdc-${NAME} ] && . /etc/default/vdc-${NAME} | ||
[ "x${RUN}" != "xyes" ] && { | ||
logger "[${NAME}] ${NAME} will not start. because RUN is not 'yes' in /etc/default/vdc-${NAME}." | ||
exit 0 | ||
} | ||
|
||
ulimit -c ${DAEMON_COREFILE_LIMIT:-0} | ||
|
||
[ -d "${VDC_ROOT}" ] || { | ||
logger "no such directory: ${VDC_ROOT}" | ||
exit 1 | ||
} | ||
cd ${VDC_ROOT}/vdc-fluentd/ | ||
|
||
exec ${VDC_ROOT}/vdc-fluentd/bin/${NAME} \ | ||
--config /etc/wakame-vdc/fluentd.conf \ | ||
--log /var/log/wakame-vdc/${NAME}.log | ||
end script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters