15 lines
No EOL
423 B
Cheetah
15 lines
No EOL
423 B
Cheetah
[Unit]
|
|
Description=rclone S3 user service ({{ .user.username }})
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User={{ .user.username }}
|
|
ExecStartPre=/usr/bin/mkdir -p "/home/{{ .user.username }}/.local/mnt/s3"
|
|
ExecStart=/usr/local/bin/rclone-mount "user" "{{ .user.username }}" "s3"
|
|
ExecStop=/bin/fusermount -u "/home/{{ .user.username }}/.local/mnt/s3"
|
|
Restart=always
|
|
RestartSec=10
|
|
|
|
[Install]
|
|
WantedBy=default.target |