summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-16 13:15:25 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-16 13:15:25 -0400
commit2cd5a18a03d679dc5f667e1402762cb741c5c122 (patch)
tree92705cf5c9959c6a6c853c08c9cb7984335e31e5
parentc726476b2584f9d37e73f9417c9a1214e81b1662 (diff)
Don't hardcode sbindir in the .service files
-rw-r--r--.gitignore1
-rw-r--r--Makefile3
-rw-r--r--parabolaweb-reporead-inotify.service.in (renamed from parabolaweb-reporead-inotify.service)2
-rw-r--r--parabolaweb.service.in (renamed from parabolaweb.service)2
4 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index b7a19ed..9f66953 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
depends.txt
+*.service
diff --git a/Makefile b/Makefile
index 6ea20b5..9bf082f 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,9 @@ install: \
depends.txt: list-depends depends_static.txt
bash $< > $@
+%.service: %.service.in
+ sed 's|@sbindir@|$(sbindir)|' < $< > $@
+
$(DESTDIR)$(sbindir)/%: %
install -Dm755 $< $@
diff --git a/parabolaweb-reporead-inotify.service b/parabolaweb-reporead-inotify.service.in
index 243fce7..099db8d 100644
--- a/parabolaweb-reporead-inotify.service
+++ b/parabolaweb-reporead-inotify.service.in
@@ -5,7 +5,7 @@ Description=ParabolaWeb reporead_inotify daemon
[Service]
Type=simple
-ExecStart=/usr/sbin/parabolaweb-reporead-inotify
+ExecStart=@sbindir@/parabolaweb-reporead-inotify
[Install]
WantedBy=multi-user.target
diff --git a/parabolaweb.service b/parabolaweb.service.in
index 011f3de..e5a06ce 100644
--- a/parabolaweb.service
+++ b/parabolaweb.service.in
@@ -5,7 +5,7 @@ Description=ParabolaWeb
[Service]
Type=simple
-ExecStart=/usr/sbin/parabolaweb-fcgi daemonize=false
+ExecStart=@sbindir@/parabolaweb-fcgi daemonize=false
[Install]
WantedBy=multi-user.target