-
-
Save alxschwarz/640c047a727b3f283e191af1fb06d085 to your computer and use it in GitHub Desktop.
GCSFuse systemd service /etc/systemd/system/gcsfuse.service
/etc/systemd/system/gcsfuse.service.d/settings.conf
This file contains hidden or 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
[Unit] | |
Description=GCS Fuse | |
After=network.target | |
[Service] | |
User=www-data | |
Group=www-data | |
WorkingDirectory=/bin | |
Type=oneshot | |
RemainAfterExit=yes | |
ExecStart=/bin/gcsfuse $BUCKET ${MOUNT_POINT} | |
ExecStop=/bin/fusermount -u ${MOUNT_POINT} | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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
[Service] | |
Environment=BUCKET=my-bucket | |
Environment=MOUNT_POINT=/mnt/gcs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment