autoNAS / config / autonas-boot-scan.service
1 contributor
22 lines | 0.622kb
[Unit]
Description=AutoNAS Boot Scanner - Detect and attach configured disks at boot
After=local-fs.target
After=systemd-udev-settle.service
After=network.target
After=nfs-kernel-server.service
Wants=nfs-kernel-server.service
# Mirror the main AutoNAS service ordering so the active boot-scan oneshot does
# not let NFS exports stop before remote filesystem unmount finishes.
Before=remote-fs.target
Before=umount.target

[Service]
Type=oneshot
ExecStart=/usr/local/lib/xdev/autonas/autonas-boot-scan.sh
RemainAfterExit=yes
TimeoutSec=300
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target