From e4d55debfb4b6e9d5a310edfebe0524fc32f2c00 Mon Sep 17 00:00:00 2001 From: Mia Altieri <32723809+MiaAltieri@users.noreply.github.com> Date: Mon, 18 Sep 2023 15:04:33 +0200 Subject: [PATCH 1/2] enable-startup enable the service to start when the system starts up --- snap/snapcraft.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 1c9cb2d..d7b44e5 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -64,7 +64,6 @@ apps: mongod: command: start-mongod.sh daemon: simple - install-mode: disable restart-condition: always restart-delay: 20s plugs: @@ -90,7 +89,6 @@ apps: - network-bind mongos: daemon: simple - install-mode: disable command: start-mongos.sh restart-condition: always restart-delay: 20s From 008fb544da77428f4e210b703cd465b9c72c5bb4 Mon Sep 17 00:00:00 2001 From: Mia Altieri Date: Mon, 18 Sep 2023 14:01:23 +0000 Subject: [PATCH 2/2] no daemon should start automatically --- snap/snapcraft.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index d7b44e5..162e5b7 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -64,6 +64,7 @@ apps: mongod: command: start-mongod.sh daemon: simple + install-mode: disable restart-condition: always restart-delay: 20s plugs: @@ -89,6 +90,7 @@ apps: - network-bind mongos: daemon: simple + install-mode: disable command: start-mongos.sh restart-condition: always restart-delay: 20s @@ -103,6 +105,7 @@ apps: command: drop_priv.sh mongotop mongodb-exporter: daemon: simple + install-mode: disable # wrapper is used to run mongodb-exporter as snap_daemon user # and pass the URI via `snapctl`. command: start-mongodb-exporter.sh @@ -121,6 +124,7 @@ apps: - network-bind pbm-agent: daemon: simple + install-mode: disable # pbm-agent requires a variable for the mongodb uri, # enviornment variables are not available to snap daemons, # so they must be passed/loaded via `snapctl`. Handling of