Skip to content

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

Closed
briner opened this Issue Feb 21, 2014 · 3 comments

2 participants

@briner
briner commented Feb 21, 2014

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 Feb 21, 2014
@briner
briner commented Feb 21, 2014

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

@briner briner reopened this Feb 21, 2014
@mrtazz
Etsy, Inc. member
mrtazz commented Apr 14, 2014

This is fixed with 845c129

@mrtazz mrtazz closed this Apr 14, 2014
@briner
briner commented Nov 20, 2014

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.