Moved sys-opt-ssd-hdd to a callable version in svc-opt-ssd-hdd

This commit is contained in:
2025-07-12 11:42:25 +02:00
parent f2187e4bc0
commit c09dec8b0f
18 changed files with 48 additions and 40 deletions

View File

@@ -0,0 +1,8 @@
[Unit]
Description=Optimize storage paths
OnFailure=sys-alm-compose.cymais@%n.service
[Service]
Type=oneshot
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore svc-opt-ssd-hdd svc-sys-bkp-rmt-2-loc --timeout "{{system_maintenance_lock_timeout_storage_optimizer}}"'
ExecStart=/bin/sh -c '/usr/bin/python {{storage_optimizer_script}} --rapid-storage-path {{path_rapid_storage}} --mass-storage-path {{path_mass_storage}}'