16552: Use fpm features to manage systemd unit.
[arvados.git] / cmd / arvados-package / fpm.go
index aec645a684ad2f4adf94ec0b8107fbc213e98727..4c9a00619e7e15cb328e381c4a6967196fb89d9c 100644 (file)
@@ -97,6 +97,13 @@ func fpm(ctx context.Context, opts opts, stdin io.Reader, stdout, stderr io.Writ
                "--verbose",
                "--deb-use-file-permissions",
                "--rpm-use-file-permissions",
+               "--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",
                "/var/lib/arvados",
                "/var/www/.gem",
                "/var/www/.passenger",