56 lines
1.8 KiB
Diff
56 lines
1.8 KiB
Diff
diff --git a/README.md b/README.md
|
|
index 762c7df..63579df 100644
|
|
--- a/README.md
|
|
+++ b/README.md
|
|
@@ -134,7 +134,7 @@ Other options include:
|
|
* `--unitdir=<path>` Path to systemd unit files.
|
|
Default: `<libdir>/systemd/system`.
|
|
* `--runparts=<path>` The path installations should use for the `run-parts` executable.
|
|
- Default: `<prefix>/bin/run-parts`.
|
|
+ Default: `/bin/run-parts`.
|
|
* `--enable-boot[=yes|no]` Include support for the boot timer.
|
|
Default: `yes`.
|
|
* `--enable-minutely[=yes|no]` Include support for the minutely timer. Requires systemd ≥ 217.
|
|
diff --git a/configure b/configure
|
|
index 2182d13..5bf336d 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -1,6 +1,6 @@
|
|
#!/bin/sh
|
|
|
|
-prefix='/usr/local'
|
|
+prefix='/usr'
|
|
bindir='$(prefix)/bin'
|
|
confdir='$(prefix)/etc'
|
|
datadir='$(prefix)/share'
|
|
@@ -9,7 +9,7 @@ statedir='/var/spool/cron'
|
|
mandir='$(datadir)/man'
|
|
docdir='$(datadir)/doc/$(package)'
|
|
unitdir='$(libdir)/systemd/system'
|
|
-runparts='/usr/bin/run-parts'
|
|
+runparts='/bin/run-parts'
|
|
|
|
enable_strip=yes
|
|
|
|
diff --git a/units/cron-boot.service.in b/units/cron-boot.service.in
|
|
index 415241f..ba65532 100644
|
|
--- a/units/cron-boot.service.in
|
|
+++ b/units/cron-boot.service.in
|
|
@@ -12,4 +12,4 @@ OnFailure=cron-failure@%i.service
|
|
Type=oneshot
|
|
IgnoreSIGPIPE=false
|
|
ExecStart={{ runparts }} {{ confdir }}/cron.{{ schedule }}
|
|
-ExecStartPost=/usr/bin/touch /run/crond.bootdir
|
|
+ExecStartPost=/bin/touch /run/crond.bootdir
|
|
diff --git a/units/cron-update.service.in b/units/cron-update.service.in
|
|
index 375db84..de806c2 100644
|
|
--- a/units/cron-update.service.in
|
|
+++ b/units/cron-update.service.in
|
|
@@ -4,5 +4,5 @@ Documentation=man:systemd.cron(7)
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
-ExecStartPre=/usr/bin/touch /run/crond.reboot
|
|
+ExecStartPre=/bin/touch /run/crond.reboot
|
|
ExecStart=/bin/sh -c '{{ bindir }}/systemctl daemon-reload ; sleep 1 ; {{ bindir }}/systemctl restart cron.target'
|