17 lines
362 B
INI
17 lines
362 B
INI
[Unit]
|
|
Description=rclone_s3 - {{ volume_name }}
|
|
AssertPathIsDirectory={{ dir_volume_mount }}
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
|
|
ExecStart=/usr/bin/rclone mount {{ rclone_mount_opts }} {{ volume_name }}: {{ dir_volume_mount }}
|
|
ExecStop=/usr/bin/fusermount -zu {{ dir_volume_mount }}
|
|
|
|
Restart=on-failure
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=default.target
|