Coder Social home page Coder Social logo

Comments (5)

kornelski avatar kornelski commented on July 23, 2024

Can you use the same trick as for git and put an empty useless file in the directory?

from cargo-deb.

Flowneee avatar Flowneee commented on July 23, 2024

This could be a solution, but not good IMO. I think people could find other usage for this feature.

If I come up with PR, will you consider it or you against hacking rules at all? If latter, I'll close this issue.

from cargo-deb.

kornelski avatar kornelski commented on July 23, 2024

How do other packages do it?

I'd rather not add a "hacky" solution, but something that's accepted as standard in Debian and Ubuntu.

from cargo-deb.

WGH- avatar WGH- commented on July 23, 2024

For systemd-based distros, you should probably use directives like LogsDirectory= in a unit, or, in more complex cases, install a file describing wanted directories into /usr/lib/tmpfiles.d.

EDIT: that won't solve directory deletion on uninstall, but neither apt-get remove nor apt-get purge deletes logs for any existing package I can think of.

from cargo-deb.

Flowneee avatar Flowneee commented on July 23, 2024

I'm gonna close this issue since I didn't come up to non-hacky way and it was quite some time. We actually did what @WGH- recommended - just don't delete existing logs, this is actually correct I think, so thanks for recommendation. Also systemd-based solutions is worth the shot, although we didn't try it yet.

I still think that alternating rules could be useful, but at this time I don't have an actual case to demonstrate that necessity)

from cargo-deb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.