Last active
September 14, 2021 16:46
-
-
Save amenpunk/bddc60b9a075e4a400f8d68080516e47 to your computer and use it in GitHub Desktop.
Simple rclone gdrive systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/rclone.service | |
[Unit] | |
Description=Google Drive (rclone ming) | |
AssertPathIsDirectory=/home/ming/Drive | |
After=plexdrive.service | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/rclone mount \ | |
--allow-other \ | |
--allow-non-empty \ | |
--config=/home/ming/.config/rclone/rclone.conf GoogleDrive:/ /home/ming/Drive/ | |
ExecStop=/bin/fusermount -u /home/ming/Drive | |
Restart=always | |
RestartSec=10 | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment