add systemd unit args

main
Nikita Tokarchuk 7 months ago
parent 117fcf3dab
commit 76ba300436
Signed by: mainnika
GPG Key ID: 5CDEED14F48FA79D
  1. 4
      rpm/golang-code-tokarch-mainnika-acpi-wakeup-fixxer.spec
  2. 1
      systemd/acpi-wakeup-fixxer
  3. 3
      systemd/acpi-wakeup-fixxer.service

@ -46,6 +46,9 @@ install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -m 0755 -vd %{buildroot}%{_unitdir} install -m 0755 -vd %{buildroot}%{_unitdir}
install -m 0644 -vp systemd/acpi-wakeup-fixxer.service %{buildroot}%{_unitdir}/ install -m 0644 -vp systemd/acpi-wakeup-fixxer.service %{buildroot}%{_unitdir}/
install -m 0755 -vd %{buildroot}%{_sysconfdir}/default
install -m 0644 -vp systemd/acpi-wakeup-fixxer %{buildroot}%{_sysconfdir}/default/
%if %{with check} %if %{with check}
%check %check
%gocheck %gocheck
@ -56,6 +59,7 @@ install -m 0644 -vp systemd/acpi-wakeup-fixxer.service %{buildroot}%{_unitdir}/
%doc README.md %doc README.md
%{_bindir}/* %{_bindir}/*
%{_unitdir}/acpi-wakeup-fixxer.service %{_unitdir}/acpi-wakeup-fixxer.service
%config(noreplace) %{_sysconfdir}/default/acpi-wakeup-fixxer
%gopkgfiles %gopkgfiles

@ -0,0 +1 @@
ACPI_WAKEUP_FIXXER_ARGS=""

@ -6,10 +6,11 @@ Before=sysinit.target shutdown.target
ConditionPathExists=|/proc/acpi/wakeup ConditionPathExists=|/proc/acpi/wakeup
[Service] [Service]
ExecStart=/usr/local/bin/acpi-wakeup-fixxer ExecStart=/usr/local/bin/acpi-wakeup-fixxer $ACPI_WAKEUP_FIXXER_ARGS
Type=oneshot Type=oneshot
TimeoutSec=0 TimeoutSec=0
RemainAfterExit=yes RemainAfterExit=yes
EnvironmentFile=-/etc/default/acpi-wakeup-fixxer
[Install] [Install]
WantedBy=sysinit.target WantedBy=sysinit.target

Loading…
Cancel
Save