| 1 |
# |
| 2 |
# This file lives in /etc/systemd/system/cloudsql-proxy-foo.service |
| 3 |
# and depends on /etc/init.d/cloudsql-proxy-foo to manage the proxy. |
| 4 |
# This unit file ensures that the cloudsql-proxy will come up after |
| 5 |
# networkmanager is functional. Note that each distinct proxy |
| 6 |
# credential requires its own unit file (you can have multiple |
| 7 |
# connections that share credentials in the same invocation) |
| 8 |
# |
| 9 |
|
| 10 |
[Unit] |
| 11 |
Description=cloudsql-proxy-foo |
| 12 |
After=NetworkManager-wait-online.service |
| 13 |
Requires=NetworkManager-wait-online.service |
| 14 |
|
| 15 |
[Service] |
| 16 |
Type=oneshot |
| 17 |
RemainAfterExit=yes |
| 18 |
ExecStart=/etc/init.d/cloudsql-proxy-foo start |
| 19 |
|
| 20 |
[Install] |
| 21 |
WantedBy=multi-user.target |