MIF | how can I have my server send a email just before it shuts down? | 02:14 |
---|---|---|
sarnold | the '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* shutdown | 02:17 |
sarnold | trying to hook the existing tooling might be difficult, since shutting down the email server would be part of the shutdown tasks.. | 02:17 |
MIF | where would I look to hook into the tooling? | 02:19 |
sarnold | MIF: 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 |
MIF | ok | 02:22 |
MIF | thanks | 02:22 |
sarnold | MIF: 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 successful | 02:23 |
sarnold | MIF: you'd probably also need to declare reationships to the mail server, Requires= .. | 02:24 |
MIF | can't I just edit the stop file for the mailserver? | 02:24 |
MIF | can't I just edit the stop file for the mail server? | 02:24 |
rbasak | I 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 |
MIF | when it is shuting down | 02:31 |
MIF | any time | 02:31 |
MIF | so if it crashes | 02:31 |
MIF | it will let me know | 02:31 |
sarnold | probably you want an off-machine monitoring service then | 02:34 |
MIF | are there any free ones that you know of? | 02:36 |
sarnold | nagios is kind of the ancient king | 02:36 |
MIF | I can't afford anything | 02:38 |
sarnold | that's fine, there's almost too many free choices :) | 02:45 |
sarnold | it'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 paralysis | 02:45 |
MIF | lol | 02:45 |
lordievader | Good morning | 05:56 |
=== denningsrogue68 is now known as denningsrogue6 | ||
tobias-urdin | coreycb: is https://review.opendev.org/c/openstack/magnum/+/777910 making it's way into UCA packages soon? | 08:45 |
tobias-urdin | seeing 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.txt | 08:45 |
=== StathisA_ is now known as StathisA | ||
=== StathisA_ is now known as StathisA | ||
coreycb | tobias-urdin: I don't think so, icey do you know? ^ | 12:27 |
icey | coreycb: tobias-urdin: not that I know of | 12:28 |
coreycb | if not we can get it going, I assume it upgrades ok | 12:29 |
raub | Embarassingly trivial question of the day: can I select a network interface in preseed given its MAC address? | 13:15 |
tobias-urdin | weird that you haven't hit that yet since it's required for mysql 8 | 13:29 |
tomreyn | raub: preseed is dead | 18:04 |
tomreyn | or ultra legacy at least | 18: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!