Add example systemd service and tmpfile.d files.

This commit is contained in:
Jordi 2017-01-13 12:56:37 +01:00
parent 1e93411810
commit b0569ab916
6 changed files with 22 additions and 0 deletions

View File

@ -2,6 +2,7 @@ SUBDIRS = \
src \ src \
data \ data \
etc \ etc \
extras \
docs \ docs \
m4macros \ m4macros \
tests tests

View File

@ -273,6 +273,8 @@ src/Makefile
data/Makefile data/Makefile
data/templates/Makefile data/templates/Makefile
etc/Makefile etc/Makefile
extras/Makefile
extras/systemd/Makefile
docs/Makefile docs/Makefile
docs/man5/Makefile docs/man5/Makefile
docs/man5/tinyproxy.conf.txt docs/man5/tinyproxy.conf.txt

2
extras/Makefile.am Normal file
View File

@ -0,0 +1,2 @@
SUBDIRS = \
systemd

View File

@ -0,0 +1,3 @@
EXTRA_DIST = \
tinyproxy.service \
tinyproxy.tmpfile

View File

@ -0,0 +1,13 @@
[Unit]
Description=Tinyproxy lightweight HTTP Proxy
After=network.target
Documentation=man:tinyproxy(8) man:tinyproxy.conf(5)
[Service]
Type=forking
ExecStart=/usr/sbin/tinyproxy
PIDFile=/run/tinyproxy/tinyproxy.pid
PrivateDevices=yes
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1 @@
D /run/tinyproxy 0750 nobody nogroup -