From a2de007c870370bbaa6155a9b6a1fcfbc4ebfe5e Mon Sep 17 00:00:00 2001 From: Eduard Tolosa Date: Mon, 8 Sep 2025 11:54:31 -0500 Subject: [PATCH] (chore): fix systemd units - Best wording - Don't allow to enable `.service` units, that wouldn't make sense because they're managed by timers --- examples/services/rusnapshot-daily.service | 2 +- examples/services/rusnapshot-daily.timer | 2 +- examples/services/rusnapshot-monthly.service | 5 +---- examples/services/rusnapshot-monthly.timer | 2 +- examples/services/rusnapshot-weekly.service | 5 +---- examples/services/rusnapshot-weekly.timer | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) diff --git a/examples/services/rusnapshot-daily.service b/examples/services/rusnapshot-daily.service index f077e1c..51639da 100644 --- a/examples/services/rusnapshot-daily.service +++ b/examples/services/rusnapshot-daily.service @@ -1,5 +1,5 @@ [Unit] -Description=Snapshot root directory. +Description=Daily snapshots for home and root subvolumes [Service] Type=oneshot diff --git a/examples/services/rusnapshot-daily.timer b/examples/services/rusnapshot-daily.timer index 81f1abd..98f2641 100644 --- a/examples/services/rusnapshot-daily.timer +++ b/examples/services/rusnapshot-daily.timer @@ -1,5 +1,5 @@ [Unit] -Description=Take snapshots daily. +Description=Take daily snapshots with rusnapshot [Timer] OnCalendar=daily diff --git a/examples/services/rusnapshot-monthly.service b/examples/services/rusnapshot-monthly.service index 71ce7c8..5478ce5 100644 --- a/examples/services/rusnapshot-monthly.service +++ b/examples/services/rusnapshot-monthly.service @@ -1,5 +1,5 @@ [Unit] -Description=Take system snapshots monthly. +Description=Monthly snapshots for home and root subvolumes [Service] Type=oneshot @@ -7,6 +7,3 @@ ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-root.toml --create --kin ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-root.toml --clean --kind monthly ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-home.toml --create --kind monthly ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-home.toml --clean --kind monthly - -[Install] -WantedBy=default.target \ No newline at end of file diff --git a/examples/services/rusnapshot-monthly.timer b/examples/services/rusnapshot-monthly.timer index 88eb6fd..366608b 100644 --- a/examples/services/rusnapshot-monthly.timer +++ b/examples/services/rusnapshot-monthly.timer @@ -1,5 +1,5 @@ [Unit] -Description=Take system snapshots monthly. +Description=Take monthly snapshots with rusnapshot [Timer] OnCalendar=monthly diff --git a/examples/services/rusnapshot-weekly.service b/examples/services/rusnapshot-weekly.service index 155ba82..ba4db04 100644 --- a/examples/services/rusnapshot-weekly.service +++ b/examples/services/rusnapshot-weekly.service @@ -1,5 +1,5 @@ [Unit] -Description=Take system snapshots weekly. +Description=Weekly snapshots for home and root subvolumes [Service] Type=oneshot @@ -7,6 +7,3 @@ ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-root.toml --create --kin ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-root.toml --clean --kind weekly ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-home.toml --create --kind weekly ExecStart=/usr/bin/rusnapshot -c /etc/rusnapshot/config-home.toml --clean --kind weekly - -[Install] -WantedBy=default.target \ No newline at end of file diff --git a/examples/services/rusnapshot-weekly.timer b/examples/services/rusnapshot-weekly.timer index 8126e47..219cbf2 100644 --- a/examples/services/rusnapshot-weekly.timer +++ b/examples/services/rusnapshot-weekly.timer @@ -1,5 +1,5 @@ [Unit] -Description=Take system snapshots weekly. +Description=Take weekly snapshots with rusnapshot [Timer] OnCalendar=weekly