I have a mount unit file. "Where" directive is "Where=/Data/mnt-wt". How to name my .mount unit file? I read that '/' should be replaced with dash(-). Then dash should be replaced with what?
The database server requires a Services file, which contains information about the known services on your network. The Services file is typically located in %windir%\System32\drivers\etc\services.
Unit files are stored in the /usr/lib/systemd directory and its subdirectories, while the /etc/systemd/ directory and its subdirectories contain symbolic links to the unit files necessary to the local configuration of this host.
A unit file is a plain text ini-style file that encodes information about a service, a socket, a device, a mount point, an automount point, a swap file or partition, a start-up target, a watched file system path, a timer controlled and supervised by systemd(1), a resource management slice or a group of externally ...
The -
gets substituted by \x2d
. Use systemd-escape
to escape strings for systemd.
> systemd-escape Data/mnt-wt.mount
Data-mnt\x2dwt.mount
Note that from systemd.mount:
In general, configuring mount points through /etc/fstab is the preferred approach
systemd-escape -p --suffix=mount "/mount/path". This command is more helpful to generate mount unit name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With