feat: systemd service for mount
This commit is contained in:
parent
3ec8b1d1e7
commit
b8e71be310
14 changed files with 91 additions and 39 deletions
14
ansible/templates/systemd/user/mount_sshfs.service
Normal file
14
ansible/templates/systemd/user/mount_sshfs.service
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=SSHFS Daemon to mount a remote directory
|
||||
StartLimitInterval=200
|
||||
StartLimitBurst=8
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/sshfs -f {{ service_params.ssh_uri }} {{ service_params.mount_path }} -o reconnect,ServerAliveInterval=30,ServerAliveCountMax=5
|
||||
Restart=always
|
||||
StandardOutput=journal
|
||||
RestartSec=20
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue