Skip to content

Instantly share code, notes, and snippets.

@alxschwarz
Forked from jaynzr/gcsfuse.service
Created April 5, 2017 10:46
Show Gist options
  • Save alxschwarz/640c047a727b3f283e191af1fb06d085 to your computer and use it in GitHub Desktop.
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
[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