Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.devel > #107672

Re: Upgrade package from init script to Systemd, move config folder

From Matthew Vernon <matthew@debian.org>
Newsgroups linux.debian.devel
Subject Re: Upgrade package from init script to Systemd, move config folder
Date 2023-04-24 17:50 +0200
Message-ID <Go6BX-4dvH-1@gated-at.bofh.it> (permalink)
References <GmILn-3mGO-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

Perry Naseck <mailinglists@perrynaseck.com> writes:

> I am in the process of updating/upgrading a package from an init.d service
> to a Systemd service. Are there any recommended guidelines for this process?
>
> Looking through some current packages I see that a lot of them have both an
> init script and a Systemd service in their debian folder. Do
> dh_installsystemd and dh_installinit handle this smoothly by default if both
> files exist? When upgrading the package on a machine will it stop the init
> service and start the Systemd service?

Assuming your unit file and init script have the same name, then yes.

One thing I'd say is: please keep the init script in your package, so
that people using inits other than systemd can continue to use it.

Thanks,

Matthew

-- 
"At least you know where you are with Microsoft."
"True. I just wish I'd brought a paddle."
http://www.debian.org

Back to linux.debian.devel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Upgrade package from init script to Systemd, move config folder Perry Naseck <mailinglists@perrynaseck.com> - 2023-04-20 22:10 +0200
  Re: Upgrade package from init script to Systemd, move config folder Matthew Vernon <matthew@debian.org> - 2023-04-24 17:50 +0200
    Re: Upgrade package from init script to Systemd, move config folder Marc Haber <mh+debian-devel@zugschlus.de> - 2023-04-26 16:50 +0200
      Re: Upgrade package from init script to Systemd, move config folder Boian Bonev <bbonev@ipacct.com> - 2023-04-26 22:10 +0200
        Re: Upgrade package from init script to Systemd, move config folder Paul Wise <pabs@debian.org> - 2023-04-27 03:30 +0200
          Re: Upgrade package from init script to Systemd, move config folder Mark Hindley <mark@hindley.org.uk> - 2023-04-27 09:20 +0200
      Re: Upgrade package from init script to Systemd, move config folder Simon Richter <sjr@debian.org> - 2023-04-27 08:40 +0200
        Re: Upgrade package from init script to Systemd, move config folder Marc Haber <mh+debian-devel@zugschlus.de> - 2023-04-27 11:20 +0200
          Re: Upgrade package from init script to Systemd, move config folder Peter Pentchev <roam@ringlet.net> - 2023-04-27 13:00 +0200

csiph-web