Legacy systemd unit files openvpn.service & openvpn@.service still used

Bug #2038874 reported by wontfix
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvpn (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

https://community.openvpn.net/openvpn/wiki/OpenVPN-systemd-use
https://community.openvpn.net/openvpn/wiki/Systemd

> Note:

    openvpn@.service is deprecated.
    openvpn.service is obsoleted. (This is only used for backward compatibility)

Deprecated and obsolete from v2.4 12/27/2016

https://github.com/OpenVPN/openvpn/blob/master/Changes.rst#overview-of-changes-in-24

This starts on any supported desktop installation.

~$ systemctl status openvpn.service
● openvpn.service - OpenVPN service
     Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor prese>
     Active: active (exited)

~$ systemd-analyze blame | grep openvpn
   33ms openvpn.service

wontfix (wontfix)
summary: - Legacy systemd unit files openvpn.service & openvpn@.service still
- included and running
+ Legacy systemd unit files openvpn.service & openvpn@.service still used
tags: added: openvpn
Changed in openvpn (Ubuntu):
status: New → Triaged
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

I wonder if these are indeed inspired in the legacy upstream unit files or if they were created by the debian maintainers (from the change history, it seems to be the latter).

Still, when looking at the new upstream unit files, I agree they could be improved (e.g., they new use sd_notify to manage the service).

Revision history for this message
wontfix (wontfix) wrote :

There must be something I am missing.
https://salsa.debian.org/debian/openvpn/-/commit/1f1166fcc0e4014c83a2a448d627f8ce410523ba
Shows that the files were removed as duplicates. The changelog says the same.
https://changelogs.ubuntu.com/changelogs/pool/main/o/openvpn/openvpn_2.6.7-1ubuntu1/changelog
"* Do not install systemd units twice (Closes: #1054083)"

When I download the .deb or look at the file list, it still shows those files as existing.
https://packages.ubuntu.com/noble/amd64/openvpn/filelist
/lib/systemd/system/openvpn.service
/lib/systemd/system/openvpn@.service

Revision history for this message
Lena Voytek (lvoytek) wrote :

Based on the bug the change fixes (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054083), this just stops the two service files from being installed twice. They are no longer added in by the install file but rather automatically by dh_installsystemd, so they should still show up in the archive

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.