Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.devel > #107641
| From | Perry Naseck <mailinglists@perrynaseck.com> |
|---|---|
| Newsgroups | linux.debian.devel |
| Subject | Upgrade package from init script to Systemd, move config folder |
| Date | 2023-04-20 22:10 +0200 |
| Message-ID | <GmILn-3mGO-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hello! 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? The original config, postinst, and init script also configure some debconf values that are not needed anymore. What is the best way to remove those settings without depending on the debconf package? This package also stores its configuration in /var/lib/packagename and it should really be in /etc/packagename. Where is the best place to deal with auto-migration? Should this go in postinst or is there a debhelper that I should use? Thanks! Perry Naseck
Back to linux.debian.devel | Previous | Next — Next in thread | Find similar | Unroll 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