Random systemd utilities and unit files.
Recommended location:
cd $HOME/.config/systemd
git clone https://github.com/kylemanna/systemd-utils.git
Symlink or hardlink unit files into $HOME/.config/systemd/user. Systemd appears to have some issues with symlinked unit files at the time of writing.
-
Allows users to specify
OnFailure=failure-email@%i.serviceunder[Unit]section of systemd files. -
The
failure-emailservice will email the user when a service fails unexpectedly and include thesystemd status <svc>output. -
Example configuration systemd file:
[Unit] ... OnFailure=failure-email@%i.service
-
Systemd service that runs and parses the output of journalctl. When a task fails, an email is sent to the user at the configured email address.
-
The
failure-monitorservice will email the user when a service fails unexpectedly and include thesystemd status <svc>output. -
Example configuration:
$ systemctl --user start failure-monitor@test@gmail.com.service