(chore): fix systemd units

- Best wording
- Don't allow to enable `.service` units, that wouldn't make sense because they're managed by timers
This commit is contained in:
Eduard Tolosa 2025-09-08 11:54:31 -05:00
parent 2f47feccd7
commit a2de007c87
6 changed files with 6 additions and 12 deletions

View file

@ -1,5 +1,5 @@
[Unit]
Description=Snapshot root directory.
Description=Daily snapshots for home and root subvolumes
[Service]
Type=oneshot

View file

@ -1,5 +1,5 @@
[Unit]
Description=Take snapshots daily.
Description=Take daily snapshots with rusnapshot
[Timer]
OnCalendar=daily

View file

@ -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

View file

@ -1,5 +1,5 @@
[Unit]
Description=Take system snapshots monthly.
Description=Take monthly snapshots with rusnapshot
[Timer]
OnCalendar=monthly

View file

@ -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

View file

@ -1,5 +1,5 @@
[Unit]
Description=Take system snapshots weekly.
Description=Take weekly snapshots with rusnapshot
[Timer]
OnCalendar=weekly