install.fairie/home/dot_config/rclone/s3-user.service.tmpl
Brian Zalewski 5f30821078 Update 12 files
- /home/dot_config/rclone/system/s3-system.service.tmpl
- /home/dot_config/rclone/private_docker-rclone.conf.tmpl
- /home/.chezmoidata.yaml
- /home/.chezmoiscripts/universal/run_onchange_after_95-bootstrap-zsh-plugins.sh.tmpl
- /home/.chezmoiscripts/universal/run_onchange_after_51-samba.sh.tmpl
- /home/dot_local/bin/executable_rclone-mount
- /home/dot_config/rclone/system/s3-public.service.tmpl
- /home/dot_config/rclone/system/s3-private.service.tmpl
- /home/dot_config/rclone/private_system-rclone.conf.tmpl
- /home/dot_config/rclone/merge_private_rclone.conf.tmpl
- /home/dot_config/rclone/s3-user.service.tmpl
- /scripts/src/provision.sh.tmpl
2023-04-19 05:15:21 +00:00

15 lines
No EOL
421 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