Need a systemd unit example that checks /etc/fstab for modification and sends a text message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Need a systemd unit example that checks /etc/fstab for modification and sends a text message
- From: Tony Rodriguez <unixpro1970@xxxxxxxxx>
- Date: Tue, 8 Feb 2022 17:27:31 -0800
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1
From my understanding, it is frowned by systemd developers to
"automatically" reload systemd via "systemctl daemon-reload" when
/etc/fstab is modified. Guessing this is why such functionality hasn't
already been incorporated into systemd. However, I would like to send a
simple text message. Instructing users to manually invoke "systemctl
deamon-reload" after modifying /etc/fstab via dmesg command or inside
/var/log/messages.
Unsure how to do so inside a systemd UNIT. Will someone please provide
an example how to do so?
Thanks
[Index of Archives]
[LARTC]
[Bugtraq]
[Yosemite Forum]
[Photo]