Code Monkey home page Code Monkey logo

Comments (9)

gdraheim avatar gdraheim commented on September 24, 2024

Why would you want to start that?

In general I am excluding such parts in the general startup behaviour in a docker container.

As for the behaviour: the systemctl.py script looks into /usr/lib/systemd instead of /lib/systemd. That's pretty much all about. ;)

from docker-systemctl-replacement.

onlyjob avatar onlyjob commented on September 24, 2024

The correct location is /lib/systemd/system.
As for why I am trying to start systemd-resolved.service (if it is of any relevance) it is to get DNS caching through "nss-resolve". Frankly at this point I'm not sure if it is a viable approach yet...
Regardless, /etc/systemd/system/ is where systemctl should look for .service files first, followed by /lib/systemd/system.
Thanks.

from docker-systemctl-replacement.

gdraheim avatar gdraheim commented on September 24, 2024

Actually, Debian9 seems to be the only system to have the files in /lib instead of /usr/lib

However the script can take another directory to be searched, so it is not at folder4.

Please check.

from docker-systemctl-replacement.

gdraheim avatar gdraheim commented on September 24, 2024

This one can be closed?

from docker-systemctl-replacement.

onlyjob avatar onlyjob commented on September 24, 2024

Unfortunately 45128d1 did not fix the problem as you've added /usr/lib/systemd/system instead of /lib/systemd/system...

from docker-systemctl-replacement.

onlyjob avatar onlyjob commented on September 24, 2024

Actually, Debian9 seems to be the only system to have the files in /lib instead of /usr/lib

Perhaps you meant Debian and 100+ of its derivatives [1,2,3] ? ;)
I'd say Debian is the only system that matters... :)

from docker-systemctl-replacement.

gdraheim avatar gdraheim commented on September 24, 2024

well, just fixed the typo

... it should work now

from docker-systemctl-replacement.

onlyjob avatar onlyjob commented on September 24, 2024

Thanks but it still does not work:

# systemctl start systemd-resolved
ERROR:systemctl:no such unit: 'resolvconf.conf'

Error disappears after cp -v /lib/systemd/system/systemd-resolved.service /etc/systemd/system/.

from docker-systemctl-replacement.

gdraheim avatar gdraheim commented on September 24, 2024

The location should not make for a difference, the directories are treated all equal, so that a copy can not have an effect on finding the service or not.

However the error-message is for a completely different unit, and it is not even a service file. That looks quite irritating. You may need to investigate a little more and possibly open another ticket.

from docker-systemctl-replacement.

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.