Comments (9)
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.
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.
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.
This one can be closed?
from docker-systemctl-replacement.
Unfortunately 45128d1 did not fix the problem as you've added /usr/lib/systemd/system
instead of /lib/systemd/system
...
from docker-systemctl-replacement.
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.
well, just fixed the typo
... it should work now
from docker-systemctl-replacement.
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.
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)
- Version tag 1.5.1706 HOT 1
- 'systemctl' not working HOT 16
- Starting a service during image build / docker file, hangs HOT 7
- Possible to work with ansible service_facts module? HOT 1
- systemctl3.py not working on Rocky Linux 8 HOT 1
- Misleading error message interaction between ExecStart= and ExecStartPost= HOT 3
- systemctl enable doesn't copy service file to right place. HOT 1
- When control-C on systemctl log -f xxx, it raise an ugly KeyboardInterrupt HOT 2
- systemctl disable not disabling service at container restart HOT 1
- can this script be used on ubuntu 22.04? HOT 1
- How is this suppoused to be ussed? HOT 1
- ERROR:systemctl: nextcloud.service: Failed to parse service type, ignoring: exec HOT 1
- Install to Centos6.8 HOT 1
- StartLimitIntervalSec=0 or how to Restart Forever HOT 1
- status command shows unit files ignored by SystemD HOT 2
- systemctl show does not respect multiple `-p/--property` switches HOT 1
- BlockingIOError: [Errno 11] Resource temporarily unavailable HOT 11
- Can't understand how logs and tty are working
- Support for systemd-inhibit? HOT 1
- systemctl start virtstoraged.service Startup exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-systemctl-replacement.