Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 848352 Details for
Bug 1051644
Use socket activation, fix rpmlint tabs vs spaces warnings.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Use socket activation, fix rpmlint tabs vs spaces warnings.
Use-socket-activation-fix-rpmlint-tabs-vs-spaces-w.patch (text/plain), 4.10 KB, created by
Ville Skyttä
on 2014-01-10 18:39:55 UTC
(
hide
)
Description:
Use socket activation, fix rpmlint tabs vs spaces warnings.
Filename:
MIME Type:
Creator:
Ville Skyttä
Created:
2014-01-10 18:39:55 UTC
Size:
4.10 KB
patch
obsolete
>From 9d67f8dd7f46153e38e97b0d46d479357d973669 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Ville=20Skytt=C3=A4?= <ville.skytta@iki.fi> >Date: Fri, 10 Jan 2014 20:38:48 +0200 >Subject: [PATCH] Use socket activation, fix rpmlint tabs vs spaces warnings. > >https://bugzilla.redhat.com/show_bug.cgi?id=1051644 >--- > acpid.service | 15 ++++----------- > acpid.socket | 9 +++++++++ > acpid.spec | 21 +++++++++++++-------- > 3 files changed, 26 insertions(+), 19 deletions(-) > create mode 100644 acpid.socket > >diff --git a/acpid.service b/acpid.service >index 553b3e2..fef3569 100644 >--- a/acpid.service >+++ b/acpid.service >@@ -1,18 +1,11 @@ > [Unit] > Description=ACPI Event Daemon >-After=syslog.target >- >-# This could probably benefit from socket activation, but honestly I think it >-# is time for acpid to go away, and hence I am not planning to spend the time >-# to add socket activation here. We use Type=forking to ensure that the >-# communication sockets are in place before boot proceeds with any service >-# needing this service. Would acpid support socket activation we could use >-# Type=simple here. >+Documentation=man:acpid(8) >+Requires=acpid.socket > > [Service] >-Type=forking > EnvironmentFile=/etc/sysconfig/acpid >-ExecStart=/usr/sbin/acpid $OPTIONS >+ExecStart=/usr/sbin/acpid -f $OPTIONS > > [Install] >-WantedBy=multi-user.target >+Also=acpid.socket >diff --git a/acpid.socket b/acpid.socket >new file mode 100644 >index 0000000..cb9a602 >--- /dev/null >+++ b/acpid.socket >@@ -0,0 +1,9 @@ >+[Unit] >+Description=ACPID Listen Socket >+Documentation=man:acpid(8) >+ >+[Socket] >+ListenStream=/var/run/acpid.socket >+ >+[Install] >+WantedBy=sockets.target >diff --git a/acpid.spec b/acpid.spec >index 3ab5aad..aaab828 100644 >--- a/acpid.spec >+++ b/acpid.spec >@@ -8,7 +8,7 @@ > Summary: ACPI Event Daemon > Name: acpid > Version: 2.0.20 >-Release: 2%{?dist} >+Release: 3%{?dist} > License: GPLv2+ > Group: System Environment/Daemons > Source: http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz >@@ -18,6 +18,7 @@ Source3: acpid.power.conf > Source4: acpid.power.sh > Source5: acpid.service > Source6: acpid.sysconfig >+Source7: acpid.socket > BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > ExclusiveArch: ia64 x86_64 %{ix86} > URL: http://sourceforge.net/projects/acpid2/ >@@ -63,7 +64,7 @@ chmod 755 %{buildroot}%{_sysconfdir}/acpi/events > install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/events/videoconf > install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/acpi/events/powerconf > install -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/acpi/actions/power.sh >-install -m 644 %{SOURCE5} %{buildroot}/lib/systemd/system >+install -m 644 %{SOURCE5} %{SOURCE7} %{buildroot}/lib/systemd/system > install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/acpid > > mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d >@@ -78,6 +79,7 @@ rm -rf %{buildroot} > %defattr(-,root,root) > %doc %{_docdir}/%{name} > /lib/systemd/system/%{name}.service >+/lib/systemd/system/%{name}.socket > %dir %{_sysconfdir}/acpi > %dir %{_sysconfdir}/acpi/events > %dir %{_sysconfdir}/acpi/actions >@@ -108,23 +110,26 @@ if [ "$1" = "2" ]; then > fi > > %post >-%systemd_post %{name}.service >+%systemd_post %{name}.socket %{name}.service > > %preun >-%systemd_preun %{name}.service >+%systemd_preun %{name}.socket %{name}.service > > %postun >-%systemd_postun_with_restart %{name}.service >+%systemd_postun_with_restart %{name}.socket %{name}.service > > %triggerun -- %{name} < 2.0.10-2 >- /sbin/chkconfig --del acpid >/dev/null 2>&1 || : >- /bin/systemctl try-restart acpid.service >/dev/null 2>&1 || : >+ /sbin/chkconfig --del acpid >/dev/null 2>&1 || : >+ /bin/systemctl try-restart acpid.service >/dev/null 2>&1 || : > > %triggerpostun -n %{name}-sysvinit -- %{name} < 2.0.10-2 >- /sbin/chkconfig --add acpid >/dev/null 2>&1 || : >+ /sbin/chkconfig --add acpid >/dev/null 2>&1 || : > > > %changelog >+* Fri Jan 10 2014 Ville Skyttä <ville.skytta@iki.fi> - 2.0.20-3 >+- Use socket activation, fix rpmlint tabs vs spaces warnings. >+ > * Wed Nov 13 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 2.0.20-2 > - Fixed loginctl and added support for cinnamon and mate (patch by Leigh Scott) > Resolves: rhbz#1029868 >-- >1.8.3.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1051644
: 848352