/srv/irclogs.ubuntu.com/2021/04/23/#ubuntu-server.txt

MIFhow can I have my server send a email just before it shuts down?02:14
sarnoldthe 'easy' way is to write a little script for you to use to shut it down, that'll send the email, sleep for a bit or loop for a bit to check if the email was actually sent, and *then* shutdown02:17
sarnoldtrying to hook the existing tooling might be difficult, since shutting down the email server would be part of the shutdown tasks..02:17
MIFwhere would I look to hook into the tooling?02:19
sarnoldMIF: check out systemd.special(7), it describes a *lot* of targets for this; poweroff.target, exit.target, halt.target, shutdown.target, omg too many :)02:22
MIFok02:22
MIFthanks02:22
sarnoldMIF: you'd juggle the various dependency lines in a .service file to either be 'running' your thing the entire lifetime of the machine and then have an ExecStop or similar to send a mail..  or perhaps a service file that's Wanted by one of these targets, I'm not sure which path is more likely to be successful02:23
sarnoldMIF: you'd probably also need to declare reationships to the mail server, Requires= ..02:24
MIFcan't I just edit the stop file for the mailserver?02:24
MIFcan't I just edit the stop file for the mail server?02:24
rbasakI thought you wanted an email sent just before the server shuts down, rather than an email sent just before the mail server service is stopped :)02:31
MIFwhen it is shuting down02:31
MIFany time02:31
MIFso if it crashes02:31
MIFit will let me know02:31
sarnoldprobably you want an off-machine monitoring service then02:34
MIFare there any free ones that you know of?02:36
sarnoldnagios is kind of the ancient king02:36
MIFI can't afford anything02:38
sarnoldthat's fine, there's almost too many free choices :)02:45
sarnoldit'd be easier if there were just a few, but there's *so many* to choose from that it's easy to suffer from analysis paralysis02:45
MIFlol02:45
lordievaderGood morning05:56
=== denningsrogue68 is now known as denningsrogue6
tobias-urdincoreycb: is https://review.opendev.org/c/openstack/magnum/+/777910 making it's way into UCA packages soon?08:45
tobias-urdinseeing in jobs https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_df0/778749/7/check/puppet-openstack-integration-6-scenario003-tempest-ubuntu-focal/df09858/logs/puppet.txt08:45
=== StathisA_ is now known as StathisA
=== StathisA_ is now known as StathisA
coreycbtobias-urdin: I don't think so, icey do you know? ^12:27
iceycoreycb: tobias-urdin: not that I know of12:28
coreycbif not we can get it going, I assume it upgrades ok12:29
raubEmbarassingly trivial question of the day: can I select a network interface in preseed given its MAC address?13:15
tobias-urdinweird that you haven't hit that yet since it's required for mysql 813:29
tomreynraub: preseed is dead18:04
tomreynor ultra legacy at least18:04
=== hggdh is now known as hggdh-msft
=== hggdh-msft is now known as hggdh

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!