How to get the systemd resolver to resolve local (i.e. unqalified) names?

Tom H tomh0665 at gmail.com
Sun Jun 4 13:46:01 UTC 2017


On Sun, Jun 4, 2017 at 7:56 AM, Xen <list at xenhideout.nl> wrote:
> Tom H schreef op 04-06-2017 13:37:
>>
>> It doesn't make sense because root is the default user for units under
>> "/{lib,etc}/systemd/system/" but if you say that it didn't work, it
>> didn't work.
>
> I know, and everything else (simple commands such as tee) did work, but mail
> didn't.
>
> It also didn't give an error.
>
> I just got no emails.
>
> But it's rather hard to put multiline commands on a ExecStart line and I
> didn't want to use a script ;-).
>
> So the "mail" command started working as soon as I used "su -c" instead of
> "sh -c" even though it should not make any difference.
>
> I could have tried "echo -e "message\nbla\nbla\n" | /usr/sbin/sendmail"
> instead.
>
> But I forgot about that possibility.
>
> Instead I tried to use "mail" which doesn't require newlines to send
> something.
>
> Yet the default environment provided by systemd causes it to fail, but by
> inserting "su" in between, it works.
>
> I don't know WHY. I just know that it does. I don't know the intrinsics of
> mail, so I really can't tell.
>
> It's just weird, that's all :p.

Thanks.

There must be something related to "mail" that either systemd or mail
logging should be able to turn up but my body and mind are too busy
digesting the large lunch that I've just had for me even to begin
thinking about this or trying to test it :(




More information about the ubuntu-users mailing list