Skip to content

Commit

Permalink
Fix packaging to remove any node references.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuchbinder committed Oct 4, 2012
1 parent 9fe323c commit 072dc3a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion redhat/config
Expand Up @@ -17,5 +17,5 @@
# -c clear stats on startup
#

STATSD_OPTIONS=" -D -l /var/lock/statsd-c -s /var/lib/statsd-c/state.json -F 60 "
STATSD_OPTIONS=" -l /var/lock/statsd-c -s /var/lib/statsd-c/state.json -F 60 "

4 changes: 1 addition & 3 deletions redhat/statsd-c
Expand Up @@ -19,11 +19,9 @@
. /etc/rc.d/init.d/functions

NAME=statsd-c
NODE_EXE=/usr/bin/nodejs
VDED_OPTIONS=
LOGFILE=/var/log/statsd-c.log

[ -x $NODE_EXE ] || exit 0
[ -f /usr/sbin/$NAME ] || exit 0
[ -f /etc/statsd-c/config ] && . /etc/statsd-c/config

Expand All @@ -38,7 +36,7 @@ start() {
if [ ! -f /var/lock/subsys/$NAME ]; then
echo -n $"Starting $NAME daemon: "
# daemon
$NODE_EXE /usr/sbin/statsd-c $STATSD_OPTIONS >> $LOGFILE 2>&1 &
/usr/sbin/statsd-c -D $STATSD_OPTIONS >> $LOGFILE 2>&1 &
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
touch /var/lock/subsys/$NAME
Expand Down
2 changes: 0 additions & 2 deletions statsd-c.spec.in
Expand Up @@ -11,8 +11,6 @@ Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch

Requires: nodejs

%description
Reimplementation of Etsy's infamous "statsd" in C.

Expand Down

0 comments on commit 072dc3a

Please sign in to comment.