diff options
| author | Simon Rettberg | 2024-02-08 16:55:49 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2024-02-08 16:55:49 +0100 |
| commit | 5a75d2127e131ebad2314b6922ecfad4d2d8aa82 (patch) | |
| tree | 264ffd1a6996211616ef9426c4848a2958043c6e /dev-tools | |
| parent | [dnbd3-rootfs] Make sure to copy dnbd3-client binary again (diff) | |
| download | systemd-init-5a75d2127e131ebad2314b6922ecfad4d2d8aa82.tar.gz systemd-init-5a75d2127e131ebad2314b6922ecfad4d2d8aa82.tar.xz systemd-init-5a75d2127e131ebad2314b6922ecfad4d2d8aa82.zip | |
Add slx_service helper function to add service-script to init
This should be called in a module install script, to add a script
in <moddir>/hooks/ to the init, and create a service file with
configurable dependencies.
slx_service <script name without .sh> <service description> [options]
Options are:
--before, --after, --wants, --requires, --wbefore --wafter
--wbefore is shorthand for doing
--before <something> --wants <something>
same for --wafter.
For example, assuming a script ./hooks/s3-init-foo.sh, call
slx_service "s3-init-foo" "Initialize all foo" --wafter \
s3-finish-bar.service --before s3-something.service
Diffstat (limited to 'dev-tools')
0 files changed, 0 insertions, 0 deletions
