python-support-infra/roles/stack/deploy_volume_s3/templates/rclone.service

17 lines
362 B
INI
Raw Normal View History

[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