@@ -15,7 +15,6 @@ import (
15
15
16
16
"github.com/juju/juju/feature"
17
17
"github.com/juju/juju/service/common"
18
- "github.com/juju/juju/service/snap"
19
18
"github.com/juju/juju/service/systemd"
20
19
"github.com/juju/juju/service/upstart"
21
20
"github.com/juju/juju/service/windows"
@@ -107,13 +106,6 @@ var discoveryFuncs = []discoveryCheck{
107
106
}
108
107
109
108
func discoverLocalInitSystem () (string , error ) {
110
- if featureflag .Enabled (feature .MongoDbSnap ) {
111
- local , err := snap .IsRunning ()
112
- if err == nil && local {
113
- return InitSystemSnap , nil
114
- }
115
- return "" , errors .NotFoundf ("snap does not appear to be installed correctly" )
116
- }
117
109
for _ , check := range discoveryFuncs {
118
110
local , err := check .isRunning ()
119
111
if err != nil {
@@ -129,7 +121,6 @@ func discoverLocalInitSystem() (string, error) {
129
121
}
130
122
131
123
const (
132
- discoverSnap = "if [ -x /usr/bin/snap ] || [ -d /snap ]; then echo -n snap; exit 0; fi"
133
124
discoverSystemd = "if [ -d /run/systemd/system ]; then echo -n systemd; exit 0; fi"
134
125
discoverUpstart = "if [ -f /sbin/initctl ] && /sbin/initctl --system list 2>&1 > /dev/null; then echo -n upstart; exit 0; fi"
135
126
)
@@ -144,9 +135,6 @@ func DiscoverInitSystemScript() string {
144
135
discoverUpstart ,
145
136
"exit 1" ,
146
137
}
147
- if featureflag .Enabled (feature .MongoDbSnap ) {
148
- tests = append ([]string {discoverSnap }, tests ... )
149
- }
150
138
data := renderer .RenderScript (tests )
151
139
return string (data )
152
140
}
0 commit comments