Skip to content

Instantly share code, notes, and snippets.

@jaynzr
Created September 18, 2016 15:45
Show Gist options
  • Save jaynzr/4fff89edb3225ae7fb81882fb1be8274 to your computer and use it in GitHub Desktop.
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
[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
[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