summaryrefslogtreecommitdiff
path: root/f3s/r-nodes/nfs-mount-monitor/nfs-mount-monitor.service
blob: e31dbe103071944dae24ecb1a3b80cd3102f8dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# systemd one-shot service that runs check-nfs-mount.sh once per invocation.
# Triggered by nfs-mount-monitor.timer (every 10 seconds).
# Logs to the journal: journalctl -u nfs-mount-monitor
#
# NFS_FAIL_THRESHOLD (consecutive failures before auto-reboot) is tunable
# via /etc/default/nfs-mount-monitor without touching this unit or the script.
#
# Deploy via Rex: rex -f f3s/r-nodes/Rexfile nfs_mount_monitor

[Unit]
Description=NFS Mount Health Monitor
After=network-online.target

[Service]
Type=oneshot
EnvironmentFile=-/etc/default/nfs-mount-monitor
ExecStart=/usr/local/bin/check-nfs-mount.sh
StandardOutput=journal
StandardError=journal