Hier meine systemd service file
Kannst du mitCode:[Unit] Description=Gmedia RClone Mount Service After=network-online.target [Service] Type=notify ExecStart=/usr/bin/rclone mount \ --config=/root/.config/rclone/rclone.conf \ --log-level=INFO \ --log-file=/opt/rclone/logs/rclone-mount-gd.log \ --user-agent=gdprv \ --umask=002 \ --gid=1002 \ --uid=1000 \ --allow-other \ --timeout=1h \ --poll-interval=10m \ --dir-cache-time=1000h \ --cache-dir=/opt/rclone/cache/gmedia \ --vfs-cache-mode=full \ --vfs-cache-max-size=200G \ --vfs-cache-max-age=48h \ gdc: /mnt/gmc ExecStop=/bin/fusermount -uz /mnt/gmc Restart=on-abort RestartSec=5 StartLimitInterval=60s StartLimitBurst=3 [Install] WantedBy=multi-user.targetkopieren und dann mitCode:nano /etc/systemd/system/<dein_servicename>.servicestarten und wird automatisch gemountet bei systemstart.Code:[sudo] systemctl enable --now <dein_servicename>.service




Zitieren