autoNAS / config / autonas-boot-scan.service
Newer Older
9443424 3 months ago History
22 lines | 0.609kb
Bogdan Timofte authored 3 months ago
1
[Unit]
2
Description=AutoNAS Boot Scanner - Detect and attach configured disks at boot
3
After=local-fs.target
4
After=systemd-udev-settle.service
5
After=network.target
6
After=nfs-kernel-server.service
7
Wants=nfs-kernel-server.service
Bogdan Timofte authored 3 months ago
8
# Mirror the main AutoNAS service ordering so the active boot-scan oneshot does
9
# not let NFS exports stop before remote filesystem unmount finishes.
10
Before=remote-fs.target
11
Before=umount.target
Bogdan Timofte authored 3 months ago
12

            
13
[Service]
14
Type=oneshot
15
ExecStart=/usr/local/bin/autonas-boot-scan.sh
16
RemainAfterExit=yes
17
TimeoutSec=300
18
StandardOutput=journal
19
StandardError=journal
20

            
21
[Install]
22
WantedBy=multi-user.target