16552: Use fpm features to manage systemd unit.
[arvados.git] / cmd / arvados-package / fpm.go
index d81abab583cc78a3ddb5b0421ee38963d8187f83..4c9a00619e7e15cb328e381c4a6967196fb89d9c 100644 (file)
@@ -97,7 +97,10 @@ func fpm(ctx context.Context, opts opts, stdin io.Reader, stdout, stderr io.Writ
                "--verbose",
                "--deb-use-file-permissions",
                "--rpm-use-file-permissions",
-               "/etc/systemd/system/multi-user.target.wants/arvados.service",
+               "--deb-systemd", "/etc/systemd/system/multi-user.target.wants/arvados.service",
+               "--deb-systemd-enable",
+               "--no-deb-systemd-auto-start",
+               "--no-deb-systemd-restart-after-upgrade",
                "/lib/systemd/system/arvados.service",
                "/usr/bin/arvados-client",
                "/usr/bin/arvados-server",