On 04/06/17 10:26, Xen wrote:
> David Sommerseth schreef op 31-05-2017 18:28:
> 
>> As you use systemctl, that implies systemd.  Then that hack is truly
>> ugly compared to what systemd provides.
> 
> You know David,
> 
> I just tried to use a simple Path file for something and then a simple
> Unit file (Service file) with systemd to send an email when that happened.
> 
> Fine, I didn't use any built-in email facility.
> 
> I used:
> 
> /bin/sh -c 'echo | /usr/bin/mail -s subject root'
> 
> And that simply didn't work.
> The command worked from the shell, and the command works from a cron job.
> But the command doesn't work from systemd.

That was not what I was commenting on.  I commented on the ugly "restart
failed service" hack you put into cron.

> It's systemd that's really ugly

Any tool you don't learn to use properly may appear ugly.  It doesn't
mean it is ugly.  It just means you're doing it wrong.  In those cases
you need to debug what goes wrong and fix that.  Not band-aid it with
ugly hacks.

This also isn't a systemd mailing list, so if you want to rant about
systemd not capable of sending an email, you need to target the proper
audience.  Here we primarily discuss OpenVPN and occasionally systemd if
it intersects with OpenVPN.  But not "systemd doesn't send mails".


--
kind regards,

David Sommerseth

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to