rncbc / rtirq

rtirq - Startup script for realtime-preempt enabled kernels
GNU General Public License v2.0
40 stars 6 forks source link

Restart rtirq service after resume from suspend #4

Closed terencode closed 5 years ago

terencode commented 5 years ago

Fix #3

terencode commented 5 years ago

I found with the help of some folks over at #systemd three ways to do it:

  1. Create a new unit file without RemainAfterExit=true that will restart rtirq.service with After=suspend.target
  2. Separate the ExecStart and ExecStop into two different units without RemainAfterExit=true.
  3. Leave the unit as it is and just put a file in /usr/lib/systemd/system-sleep to call rtirq.service start which will be triggered when receiving the post argument

Which one do you think is better?

terencode commented 5 years ago

@rncbc the PR wasn't ready for merging, you need to tell me which approach you prefer.