|
1234567891011121314151617181920212223242526272829 |
- [Unit]
- Description=Automount and Unmount a Filesystem
- After=network-online.target
- Wants=network-online.target
-
- [Automount]
- # Takes an absolute path of a directory of the
- # automount point. If the automount point does
- # not exist at time that the automount point is
- # installed, it is created. This string must be
- # reflected in the unit filename.
- Where=/mount
-
- # Directories of automount points (and any parent
- # directories) are automatically created if needed.
- # This option specifies the file system access mode
- # used when creating these directories. Takes an
- # access mode in octal notation.
- #DirectoryMode=0755
-
- # Configures an idle timeout. Once the mount has
- # been idle for the specified time, systemd will
- # attempt to unmount. Takes a unit-less value in
- # seconds, or a time span value such as "5min 20s".
- # Pass 0 to disable the timeout logic.
- #TimeoutIdleSec=0
-
- [Install]
- WantedBy=multi-user.target
|