[systemd-devel] nfs-convert.service

Steve Dickson steved at redhat.com
Mon Aug 22 14:08:32 UTC 2022



On 8/22/22 9:46 AM, Steve Dickson wrote:
> 
> Thanks for the reply!
> 
> On 8/22/22 4:09 AM, Lennart Poettering wrote:
>> On Fr, 19.08.22 11:21, Steve Dickson (steved at redhat.com) wrote:
>>
>>> Hello,
>>>
>>> I'm trying to remove nfsconvert from Fedora but I'm
>>> getting the following systemd error after I removed
>>> the command and the service file.
>>>
>>> # systemctl restart nfs-server
>>> Failed to restart nfs-server.service: Unit nfs-convert.service not
>>> found
>>
>> This is expected if you remove the file first?
> Well, I build a package that didn't include that
> service file and then installed the new package.
> 
> I just assumed if the service file didn't exist and
> didn't exist in any other service files, it would not
> be called... I guess is not the case.
> 
>>
>>> There is nothing in the nfs-utils files that
>>> has that service in it... and when I do a
>>>
>>> systemctl list-dependencies --all | grep -1 nfs-convert
>>>
>>> I see every nfs related service dependent on nfs-convert.service
>>
>> Did you issue "systemctl daemon-reload"?
> Yes and rebooted...
> 
> Back in the day there was this bz
>   Make nfs-convert enabled by adding it to systemd presets [1]
> 
> I don't know that a systemd presets is, but I'm wondering
> if that is why nfs-convert services shows up as a dependency
> of all the rest of the service files.
> 
>     systemctl list-dependencies --all | grep -1 nfs-convert
It turns out all that's needed is a %triggerun to disable
the service on the way out...

Sorry for the noise...

steved.
> 
> steved.
> 
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=1683101



More information about the systemd-devel mailing list