Giter Site home page Giter Site logo

Comments (5)

ElTopo avatar ElTopo commented on June 12, 2024 1

I think you are confused with systemd service's WorkingDirectory and AdGuardHome's work-dir.

systemd service's WorkingDirectory: the directory that systemd uses to launch service
https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#WorkingDirectory=

AdGuardHome's work-dir: the directory that AdGuardHome uses to store data. From the code, either you use -w option, or the executable file path

func initWorkingDir(opts options) (err error) {

Basically, they are different things... until the developer decides to use systemd service's WorkingDirectory as AdGuardHome's work-dir.

from adguardhome.

 avatar commented on June 12, 2024

Hi @flipreverse, thanks for the report.
Can you confirm which OS you're using?

from adguardhome.

flipreverse avatar flipreverse commented on June 12, 2024

Hi @flipreverse, thanks for the report. Can you confirm which OS you're using?

I see this behavior on Debian Testing arm64 (aka Trixie) as well as on Debian 12 arm64 (bookworm aka Raspbian) .

from adguardhome.

 avatar commented on June 12, 2024

Hi @flipreverse, it is working correctly, it will place the working directory by default within the AdGuard Home binary folder.

As you've mentioned in the first comment, using the -w argument resolves this, and that will be persistent until it's changed again.

Does this resolve your issue?

from adguardhome.

flipreverse avatar flipreverse commented on June 12, 2024

Hi @flipreverse, it is working correctly, it will place the working directory by default within the AdGuard Home binary folder.

As you've mentioned in the first comment, using the -w argument resolves this, and that will be persistent until it's changed again.

Does this resolve your issue?

Yeah, that resolves my issue. Thank you!
AS @ElTopo mentioned, I got mislead by systemd's WorkingDirectory direcive

from adguardhome.

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.