Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 1 | From 420ae0f395838b852ae8b8fe5528056c36dc0919 Mon Sep 17 00:00:00 2001 |
| 2 | From: Claudius Heine <ch@denx.de> |
| 3 | Date: Wed, 11 May 2022 15:14:22 +0200 |
| 4 | Subject: [PATCH] add WantedBy directive to btrfsmaintenance-refresh.service |
| 5 | |
| 6 | Just trigger the service on the first boot, to configure services to the |
| 7 | configuration file deployed in the package, afterwards disable the |
| 8 | service, so that is only triggered when the configuration file has |
| 9 | changed. |
| 10 | |
| 11 | Upstream-Status: Inappropriate [OE specific] |
| 12 | |
| 13 | Signed-off-by: Claudius Heine <ch@denx.de> |
| 14 | --- |
| 15 | btrfsmaintenance-refresh.service | 4 ++++ |
| 16 | 1 file changed, 4 insertions(+) |
| 17 | |
| 18 | diff --git a/btrfsmaintenance-refresh.service b/btrfsmaintenance-refresh.service |
| 19 | index d6225a6..58d0e09 100644 |
| 20 | --- a/btrfsmaintenance-refresh.service |
| 21 | +++ b/btrfsmaintenance-refresh.service |
| 22 | @@ -3,4 +3,8 @@ Description=Update cron periods from /etc/default/btrfsmaintenance |
| 23 | |
| 24 | [Service] |
| 25 | ExecStart=/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh systemd-timer |
| 26 | +ExecStart=systemctl disable btrfsmaintenance-refresh.service |
| 27 | Type=oneshot |
| 28 | + |
| 29 | +[Install] |
| 30 | +WantedBy=multi-user.target |
| 31 | -- |
| 32 | 2.33.3 |
| 33 | |