Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

built package does not create /var/log/stastd when installing #396

Closed
briner opened this Issue · 3 comments

2 participants

@briner

When installing the pakage created with:

git clone https://github.com/etsy/statsd.git statsd
cd statsd
dpkg-buildpackage -b

it will create the file ../statsd_0.6.0-1_all.deb

when installing it:

LC_ALL=C dpkg -i statsd_0.6.0-1_all.deb
  # (Reading database ... 57337 files and directories currently installed.)
  # Preparing to replace statsd 0.6.0-1 (using statsd_0.6.0-1_all.deb) ...
  # Unpacking replacement statsd ...
  # Setting up statsd (0.6.0-1) ...
  # /etc/init.d/statsd: 62: /etc/init.d/statsd: cannot create /var/log/statsd/statsd.log: Directory nonexistent

the installation fail :(

If I do create the dir /var/log/statsd/ manually (mkdir /var/log/statsd)

when installing it:

LC_ALL=C dpkg -i statsd_0.6.0-1_all.deb
  # (Reading database ... 57337 files and directories currently installed.)
  # Preparing to replace statsd 0.6.0-1 (using statsd_0.6.0-1_all.deb) ...
  # Unpacking replacement statsd ...
  # Setting up statsd (0.6.0-1) ...

the installation succeed. :)

So it should be added (in my opinion in postinst/postrm) the creation of /var/log/stastd and its suppression

@briner briner closed this
@briner

sorry, I messed with tho close button. The issue still be here.

@briner briner reopened this
@mrtazz
Owner

This is fixed with 845c129

@mrtazz mrtazz closed this
@briner

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.