Skip to content

Commit c918f79

Browse files
committed
removed explicit script-path from systemd-services
1 parent 1255756 commit c918f79

6 files changed

+16
-16
lines changed

Makefile

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PREFIX := /usr/local
2-
2+
SYSTEMD_HOME := /lib/systemd/system
33
all:
44

55
install:
@@ -20,16 +20,16 @@ install:
2020

2121
systemd:
2222
install -d $(DESTDIR)/lib/systemd/system/
23-
install timers/zfs-auto-snapshot-frequent.service $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-frequent.service
24-
install timers/zfs-auto-snapshot-frequent.timer $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-frequent.timer
25-
install timers/zfs-auto-snapshot-hourly.service $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-hourly.service
26-
install timers/zfs-auto-snapshot-hourly.timer $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-hourly.timer
27-
install timers/zfs-auto-snapshot-daily.service $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-daily.service
28-
install timers/zfs-auto-snapshot-daily.timer $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-daily.timer
29-
install timers/zfs-auto-snapshot-weekly.service $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-weekly.service
30-
install timers/zfs-auto-snapshot-weekly.timer $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-weekly.timer
31-
install timers/zfs-auto-snapshot-monthly.service $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-monthly.service
32-
install timers/zfs-auto-snapshot-monthly.timer $(DESTDIR)/lib/systemd/system/zfs-auto-snapshot-monthly.timer
23+
install timers/zfs-auto-snapshot-frequent.service $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-frequent.service
24+
install timers/zfs-auto-snapshot-frequent.timer $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-frequent.timer
25+
install timers/zfs-auto-snapshot-hourly.service $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-hourly.service
26+
install timers/zfs-auto-snapshot-hourly.timer $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-hourly.timer
27+
install timers/zfs-auto-snapshot-daily.service $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-daily.service
28+
install timers/zfs-auto-snapshot-daily.timer $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-daily.timer
29+
install timers/zfs-auto-snapshot-weekly.service $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-weekly.service
30+
install timers/zfs-auto-snapshot-weekly.timer $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-weekly.timer
31+
install timers/zfs-auto-snapshot-monthly.service $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-monthly.service
32+
install timers/zfs-auto-snapshot-monthly.timer $(DESTDIR)/$(SYSTEMD_HOME)/zfs-auto-snapshot-monthly.timer
3333
install -d $(DESTDIR)$(PREFIX)/share/man/man8
3434
install src/zfs-auto-snapshot.8 $(DESTDIR)$(PREFIX)/share/man/man8/zfs-auto-snapshot.8
3535
install -d $(DESTDIR)$(PREFIX)/sbin

timers/zfs-auto-snapshot-daily.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Description=ZFS daily snapshot service
33

44
[Service]
5-
ExecStart=/usr/bin/zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //
5+
ExecStart=zfs-auto-snapshot --quiet --syslog --label=daily --keep=31 //

timers/zfs-auto-snapshot-frequent.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Description=ZFS frequent snapshot service
33

44
[Service]
5-
ExecStart=/usr/bin/zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 //
5+
ExecStart=zfs-auto-snapshot --quiet --syslog --label=frequent --keep=4 //

timers/zfs-auto-snapshot-hourly.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Description=ZFS hourly snapshot service
33

44
[Service]
5-
ExecStart=/usr/bin/zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //
5+
ExecStart=zfs-auto-snapshot --quiet --syslog --label=hourly --keep=24 //

timers/zfs-auto-snapshot-monthly.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Description=ZFS monthly snapshot service
33

44
[Service]
5-
ExecStart=/usr/bin/zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //
5+
ExecStart=zfs-auto-snapshot --quiet --syslog --label=monthly --keep=12 //

timers/zfs-auto-snapshot-weekly.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
Description=ZFS weekly snapshot service
33

44
[Service]
5-
ExecStart=/usr/bin/zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //
5+
ExecStart=zfs-auto-snapshot --quiet --syslog --label=weekly --keep=8 //

0 commit comments

Comments
 (0)