Skip to content

Commit

Permalink
no daemon should start automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
MiaAltieri committed Sep 18, 2023
1 parent e4d55de commit b5f6ce0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ apps:
mongod:
command: start-mongod.sh
daemon: simple
install-mode: disable
restart-condition: always
restart-delay: 20s
plugs:
Expand All @@ -89,6 +90,7 @@ apps:
- network-bind
mongos:
daemon: simple
install-mode: disable
command: start-mongos.sh
restart-condition: always
restart-delay: 20s
Expand All @@ -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
Expand All @@ -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
Expand All @@ -145,8 +149,7 @@ parts:
zcat $CRAFT_PRIME/$LICENSE_LOC/LICENSE-Community.txt.gz \
> $CRAFT_PRIME/licenses/LICENSE-percona-server
organize:
usr/share/doc/percona-backup-mongodb/copyright:
licenses/LICENSE-percona-backup-mongodb
usr/share/doc/percona-backup-mongodb/copyright: licenses/LICENSE-percona-backup-mongodb
percona-mongodb-exporter:
plugin: dump
source: "https://github.com/percona/mongodb_exporter/releases/download\
Expand Down

0 comments on commit b5f6ce0

Please sign in to comment.