[systemd-devel] Antw: Re: Wtrlt: Antw: Re: Can I enable/disable a target?

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Mon May 13 05:58:01 UTC 2019


>>> Michael Biebl <mbiebl at gmail.com> schrieb am 09.05.2019 um 16:56 in Nachricht
<CAGWsdOgy5+tn7JVnyQ5sWGxWqW+VLLkVRbT+hXv50w1UBaiHbA at mail.gmail.com>:
> Am Do., 9. Mai 2019 um 15:52 Uhr schrieb Ulrich Windl
> <Ulrich.Windl at rz.uni-regensburg.de>:
>>
>> (Sorry, I didn't send to the list before)
>> >>> Ulrich Windl <Ulrich.Windl at rz.uni-regensburg.de> schrieb am 09.05.2019 um 
> 14:28
>> in Nachricht <5CD44CAE.ED38.00A1.0 at rz.uni-regensburg.de>:
>> >>>> Michael Biebl <mbiebl at gmail.com> schrieb am 09.05.2019 um 12:29 in Nachricht
>> > <CAGWsdOjaT+g+-f2EJGH5SqgdH0p1mTTriKRdPov7eSD8aJwjOQ at mail.gmail.com>:
>> > > Am Do., 9. Mai 2019 um 12:27 Uhr schrieb Ulrich Windl
>> > > <Ulrich.Windl at rz.uni-regensburg.de>:
>> > >>
>> > >> Hi!
>> > >>
>> > >> Whenever I try to enable or disable a target (that exists), I get "Failed 
> to
>> >
>> > > execute operation: No such file or directory". What file or directory,
>> > > please? Or what is the command trying to say?
>> > >
>> > > Can you share the target unit please.
>> > > Into what location have you installed the unit file?
>> >
>> > This is after fixing obvious errors:
>> > # systemctl enable iotwatch.target
>> > Failed to execute operation: No such file or directory
>> > # cat /run/systemd/generator.late/iotwatch.target
>> > [Unit]
>> > Description=iotwatch I/O performance monitor
>> > Documentation=man:iotwatch at .service(8) man:iotwatch-generator(8)
>> > After=nss-lookup.target time-sync.target paths.target
>> > Wants=iotwatch at VAR.service 
>> >
>> > [Install]
>> > WantedBy=multi-user.target
> 
> This doesn't make sense. You generate an ephemeral runtime unit in
> /run but you then try to enable it in /etc.

See /etc/fstab. it does make sense!

> 
> To make it easier to help, you should give us an idea/overview what
> you are trying to achieve. What you did so far (and why), what
> environment you are using etc.
> 
> It's really hard to give you a good answer when we don't even tell us
> the systemd version and distro you are using.

SLES12 SP3 / SP4. And the goal is very simple: Make may service that runs perfectly under init run under systemd with minimal changes to the runtime environment.

> 
> -- 
> Why is it that all of the instruments seeking intelligent life in the
> universe are pointed away from Earth?






More information about the systemd-devel mailing list