Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
packaging
rpm-icingaweb2-module-vspheredb
Commits
26f62328
Commit
26f62328
authored
Sep 09, 2019
by
Markus Frosch
Browse files
Use correct username for service
parent
fee40d7e
Pipeline
#5276
failed with stages
in 6 minutes and 30 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
icinga-vspheredb.service
View file @
26f62328
...
...
@@ -5,7 +5,7 @@ Wants=network.target
[Service]
Type
=
notify
User
=
icingaweb2
User
=
apache
ExecStart
=
/usr/bin/icingacli vspheredb daemon run
; For debugging purposes:
; ExecStart=/usr/bin/icingacli vspheredb daemon run --trace --debug
...
...
icingaweb2-module-vspheredb.spec
View file @
26f62328
...
...
@@ -20,6 +20,12 @@ BuildArch: noarch
%global basedir %{_datadir}/icingaweb2/modules/%{module_name}
%global service_name icinga-%{module_name}
%if "%{_vendor}" == "suse"
%global service_user wwwrun
%else # suse
%global service_user apache
%endif # suse
BuildRequires: systemd-devel
Requires: systemd
...
...
@@ -82,6 +88,9 @@ cp -r * %{buildroot}%{basedir}
install -d %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{service_name}.service
# Replace user in service unit
sed -i -e 's~^User=.*~User=%{service_user}~' %{buildroot}%{_unitdir}/%{service_name}.service
%if "%{_vendor}" == "suse"
install -d %{buildroot}%{_sbindir}
ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rc%{service_name}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment