Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 13982  / 3 Years ago, mon, july 12, 2021, 3:41:11

I've installed resolvconf but for some reason resolvconf-pull-resolved doesn't want to initiate, Any idea what is preventing this, I would think that it's systemd but then again i don't even know what this pull service does



● resolvconf-pull-resolved.service
Loaded: loaded (/lib/systemd/system/resolvconf-pull-resolved.service; static; vendor preset: enabled)
Active: inactive (dead) since Mon 2018-09-24 13:11:46 UTC; 4s ago
Process: 10656 ExecStart=/bin/sh -c cat /run/systemd/resolve/stub-resolv.conf | /sbin/resolvconf -a systemd-resolved (code=exited, status=0/SUCCESS)
Main PID: 10656 (code=exited, status=0/SUCCESS)

Sep 24 13:11:46 Inspire systemd[1]: Starting resolvconf-pull-resolved.service...
Sep 24 13:11:46 Inspire systemd[1]: Started resolvconf-pull-resolved.service.


And journalctl



journalctl | grep resolvconf
Sep 24 12:58:39 Inspire sudo[9844]: root : TTY=pts/0 ; PWD=/etc ; USER=root ; COMMAND=/usr/local/bin/apt install resolvconf
Sep 24 12:58:46 Inspire systemd[1]: Started resolvconf-pull-resolved.path.
Sep 24 12:58:53 Inspire systemd[1]: Starting resolvconf-pull-resolved.service..

More From » resolv.conf

 Answers
6

I think the service is working fine it's just not expected to continue running. It runs this command:



/bin/sh -c cat /run/systemd/resolve/stub-resolv.conf | /sbin/resolvconf -a systemd-resolved


Reading the man page for resolvconf shows:




The resolvconf package comprises a simple database for run-time nameserver information and a simple framework for notifying applications of changes in that information. Resolvconf thus sets itself up as the intermediary between programs that supply nameserver information and applications that use that information.



Information is added to or removed from the database using the resolvconf program. See the OPTIONS section below for a discussion of the available options.




And the -a option:




-a IFACE.PROG



Add or overwrite the record IFACE.PROG then run the update scripts if updating is enabled. When this option is used the information must be provided to resolvconf on its standard input in the format of the resolv.conf(5) file. Each line in the file must be terminated by a newline.




It appears it creates the resolvconf database and then exits.


[#7119] Tuesday, July 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eeperant

Total Points: 39
Total Questions: 106
Total Answers: 117

Location: Finland
Member since Sat, Dec 5, 2020
4 Years ago
;