Bug 42159 - Support for systemd template units for {post,preun}_service
Summary: Support for systemd template units for {post,preun}_service
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: service (show other bugs)
Version: unstable
Hardware: x86 Linux
: P5 normal
Assignee: placeholder@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-18 05:11 MSK by Vitaly Chikunov
Modified: 2022-03-18 10:46 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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@'*'