mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-22 13:45:42 +00:00
16 lines
397 B
Desktop File
16 lines
397 B
Desktop File
[Unit]
|
|
Description=Check EC2 metadata for MongoDB Replica Set Name and patch /etc/mongod.conf accordingly
|
|
Requires=ephemeralvolume.service
|
|
After=ephemeralvolume.service
|
|
Requires=cloud-init.service
|
|
After=cloud-init.service
|
|
Before=mongod.service
|
|
|
|
[Install]
|
|
RequiredBy=mongod.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
ExecStart=/usr/local/bin/patch-mongo-replicaset-name-from-ec2-metadata
|