navy files for mounting /mnt/media through tailscale
This commit is contained in:
13
navy/etc/systemd/system/mnt-media-monitor.service
Normal file
13
navy/etc/systemd/system/mnt-media-monitor.service
Normal file
@@ -0,0 +1,13 @@
|
||||
# /etc/systemd/system/mnt-media-monitor.service
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/systemctl restart mnt-media.mount
|
||||
[Unit]
|
||||
Description=Persistent NFS Mount Watcher
|
||||
After=mnt-media.mount
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/bin/sh -c 'if ! mountpoint -q /mnt/media; then systemctl restart mnt-media.mount; fi'
|
||||
Nice=19
|
||||
IOSchedulingClass=idle
|
||||
Reference in New Issue
Block a user