autoNAS / config / autonas.service
Newer Older
9443424 3 months ago History
24 lines | 0.722kb
Bogdan Timofte authored 3 months ago
1
[Unit]
2
Description=AutoNAS Main Service - Automatic disk mounting and NFS export system
3
Documentation=file:///usr/local/share/doc/autonas/README.md
4
After=local-fs.target
5
After=systemd-udev-settle.service
6
After=network.target
7
After=nfs-kernel-server.service
8
Wants=nfs-kernel-server.service
Bogdan Timofte authored 3 months ago
9
# Keep the AutoNAS/NFS provider side alive until Proxmox had a chance to
10
# unmount remote filesystems that depend on these exports during shutdown.
11
Before=remote-fs.target
12
Before=umount.target
Bogdan Timofte authored 3 months ago
13
RequiredBy=autonas-boot-scan.service
14

            
15
[Service]
16
Type=oneshot
17
RemainAfterExit=yes
18
ExecStart=/bin/true
19
ExecReload=/usr/local/bin/autonas-disk-handler.sh reload
20
StandardOutput=journal
21
StandardError=journal
22

            
23
[Install]
24
WantedBy=multi-user.target