Substitute bindir in nghttpx.service
This commit is contained in:
parent
2a37a28d72
commit
98034286ac
|
@ -1 +1,2 @@
|
||||||
nghttpx-init
|
nghttpx-init
|
||||||
|
nghttpx.service
|
||||||
|
|
|
@ -21,19 +21,24 @@
|
||||||
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
EXTRA_DIST = nghttpx-init.in nghttpx.service nghttpx-logrotate
|
configfiles = nghttpx-init nghttpx.service
|
||||||
|
|
||||||
|
EXTRA_DIST = $(configfiles:%=%.in) nghttpx-logrotate
|
||||||
|
|
||||||
edit = sed -e 's|@bindir[@]|$(bindir)|g'
|
edit = sed -e 's|@bindir[@]|$(bindir)|g'
|
||||||
|
|
||||||
nghttpx-init: Makefile
|
nghttpx-init: %: $(srcdir)/%.in
|
||||||
rm -f $@ $@.tmp
|
rm -f $@ $@.tmp
|
||||||
$(edit) $(srcdir)/$@.in > $@.tmp
|
$(edit) $< > $@.tmp
|
||||||
chmod +x $@.tmp
|
chmod +x $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
nghttpx-init: $(srcdir)/nghttpx-init.in
|
nghttpx.service: %: $(srcdir)/%.in
|
||||||
|
$(edit) $< > $@
|
||||||
|
|
||||||
all-local: nghttpx-init
|
$(configfiles): Makefile
|
||||||
|
|
||||||
|
all-local: $(configfiles)
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
-rm -f nghttpx-init nghttpx-init.tmp
|
-rm -f nghttpx-init.tmp $(configfiles)
|
||||||
|
|
|
@ -4,7 +4,7 @@ After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/nghttpx --errorlog-syslog
|
ExecStart=@bindir@/nghttpx --errorlog-syslog
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue