-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathezproxy-tuned.service
34 lines (31 loc) · 1018 Bytes
/
ezproxy-tuned.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[Unit]
Description=EZProxy (network tuned)
Documentation=https://help.oclc.org/Library_Management/EZproxy
PartOf=Network.target
After=local-fs.target nss-lookup.target network-online.target
[Service]
Type=forking
WorkingDirectory=/usr/local/ezproxy
ExecStartPre=/sbin/sysctl -w net.ipv4.ip_local_port_range="10000 65535"
ExecStartPre=/sbin/sysctl -w net.ipv4.tcp_tw_reuse=1
ExecStartPre=/sbin/sysctl -w net.ipv4.tcp_fin_timeout=15
ExecStart=/usr/local/ezproxy/ezproxy start
ExecStop=/usr/local/ezproxy/ezproxy stop
ExecReload=/usr/local/ezproxy/ezproxy restart
KillMode=none
Restart=on-failure
RestartSec=3
LimitNOFILE=60000
LimitNPROC=infinity
LimitSTACK=infinity
[Install]
WantedBy=multi-user.target
Alias=ezproxy-tuned.service
# Installation:
#
# Edit this file to /usr/local/ezproxy/ezproxy-tuned.service
# ln -s /usr/local/ezproxy/ezproxy-tuned.service /lib/systemd/system/ezproxy-tuned.service
#
# systemctl daemon-reload
# systemctl enable ezproxy-tuned.service
# systemctl start ezproxy-tuned.service