diff options
author | Sam Kleinman <samk@10gen.com> | 2016-02-11 12:36:38 -0500 |
---|---|---|
committer | Sam Kleinman <samk@10gen.com> | 2016-02-16 12:52:42 -0500 |
commit | f7414114d89d7c07ee1f2282290897ddbd27985c (patch) | |
tree | f21bf64e14252dea8a9d42a32dc8348c5038c3a6 /buildscripts/packager.py | |
parent | 3862a9dbaf9a2c6a8131f674f5bde70793255049 (diff) | |
download | mongo-f7414114d89d7c07ee1f2282290897ddbd27985c.tar.gz |
SERVER-7285: future proof ubuntu packaging with regards to systemd
Diffstat (limited to 'buildscripts/packager.py')
-rwxr-xr-x | buildscripts/packager.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/buildscripts/packager.py b/buildscripts/packager.py index 3bb1fbcc8b5..5b79eb8869c 100755 --- a/buildscripts/packager.py +++ b/buildscripts/packager.py @@ -463,9 +463,13 @@ def make_deb(distro, build_os, arch, spec, srcdir): os.link(sdir+"debian/mongod.service", sdir+"debian/%s%s-server.mongod.service" % (distro.pkgbase(), suffix)) os.unlink(sdir+"debian/init.d") elif re.search("ubuntu", distro.name()): - os.link(sdir+"debian/mongod.upstart", sdir+"debian/%s%s-server.mongod.upstart" % (distro.pkgbase(), suffix)) os.unlink(sdir+"debian/init.d") - os.unlink(sdir+"debian/mongod.service") + if build_os in ("ubuntu1204", "ubuntu1404", "ubuntu1410"): + os.link(sdir+"debian/mongod.upstart", sdir+"debian/%s%s-server.mongod.upstart" % (distro.pkgbase(), suffix)) + os.unlink(sdir+"debian/mongod.service") + else: + os.link(sdir+"debian/mongod.service", sdir+"debian/%s%s-server.mongod.service" % (distro.pkgbase(), suffix)) + os.unlink(sdir+"debian/mongod.upstart") else: raise Exception("unknown debianoid flavor: not debian or ubuntu?") # Rewrite the control and rules files |