Bug 42159

Summary: Support for systemd template units for {post,preun}_service
Product: Sisyphus Reporter: Vitaly Chikunov <vt>
Component: serviceAssignee: placeholder <placeholder>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: glebfm, iv, ldv, legion, placeholder
Version: unstable   
Hardware: x86   
OS: Linux   

Description Vitaly Chikunov 2022-03-18 05:11:33 MSK
Systemd service templates (which is non-instantiated units ended with '@') currently (as of 0.5.33-alt1) are not supported by `{post,preun}_service` scripts. Making it impossible to properly restart and uninstall such instances (thus never handled in specs).

Perhaps, proper support should behave something like this (for preun):

  systemctl --no-reload -q disable %name-server@
  systemctl stop %name-server@'*'