Skip to content

Instantly share code, notes, and snippets.

@jaynzr
Last active February 5, 2018 08:10
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaynzr/4a1eaf4c6bbadf33acc35b1fd8e93e00 to your computer and use it in GitHub Desktop.
Save jaynzr/4a1eaf4c6bbadf33acc35b1fd8e93e00 to your computer and use it in GitHub Desktop.
CloudSQL Proxy systemd /etc/systemd/system/cloudsql_proxy.service /etc/systemd/system/cloudsql_proxy.service.d/settings.conf
[Unit]
Description=CloudSQL Proxy
After=network.target
[Service]
User=nobody
Group=nobody
WorkingDirectory=/usr/local/bin
ExecStart=/usr/local/bin/cloud_sql_proxy -dir=/cloudsql -instances=${INSTANCES}
[Install]
WantedBy=multi-user.target
[Service]
Environment=INSTANCES=<path>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment