Created
September 18, 2016 15:45
-
-
Save jaynzr/4fff89edb3225ae7fb81882fb1be8274 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