Bug 56144 - Support UCRV portal/autostart
Support UCRV portal/autostart
Status: NEW
Product: UCS
Classification: Unclassified
Component: Portal
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2023-06-13 15:12 CEST by Philipp Hahn
Modified: 2023-06-13 15:12 CEST (History)
0 users

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): bitesize
Max CVSS v3 score:
hahn: Patch_Available+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2023-06-13 15:12:34 CEST
Package "univention-portal" runs "univention-portal-server.service", which currently cannot be controlled by UCRV "portal/autostart".

diff --git a/management/univention-portal/debian/univention-portal.univention-config-registry-variables b/management/univention-portal/debian/univention-portal.univention-config-registry-variables
index ec7db45600..ad262b04d9 100644
--- a/management/univention-portal/debian/univention-portal.univention-config-registry-variables
+++ b/management/univention-portal/debian/univention-portal.univention-config-registry-variables
@@ -2,3 +2,9 @@
 Description[de]=Der Port, auf der der Univention Portal Server läuft.
 Description[en]=The port used by the Univention Portal server.
 Type=int
+
+[portal/autostart]
+Description[de]=Die Variable konfiguriert den Startmodus des Univention Portal Server. Wird sie auf 'no' oder 'disabled' gesetzt, kann der Dienst nicht gestartet werden. Wird die auf 'manually' gesetzt, erfolgt kein automatischer Start zum Systemstart, der Dienst kann aber später gezielt gestartet werden.
+Description[en]=This variable configures the start mode of the Univention Portal Server. If set to 'no' or 'disabled', the service cannot be started. If the variable is set to 'manually', the service isn't started during system boot, but can be enabled manually at a later point.
+Type=str
+Categories=portal
diff --git a/management/univention-portal/debian/univention-portal.univention-service b/management/univention-portal/debian/univention-portal.univention-service
new file mode 100644
index 0000000000..2323d7d47f
--- /dev/null
+++ b/management/univention-portal/debian/univention-portal.univention-service
@@ -0,0 +1,7 @@
+[univention-portal-server]
+Description[de]=Univention Portal Server
+Description[en]=Univention Portal Server
+programs=/usr/bin/univention-portal-server
+icon=service/portal
+start_type=portal/autostart
+systemd=univention-portal-server.service