summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systemd-units/squid.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd-units/squid.service b/systemd-units/squid.service
new file mode 100644
index 0000000..4074d8f
--- /dev/null
+++ b/systemd-units/squid.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Web Proxy Cache Server
+Documentation=man:squid(8)
+
+[Service]
+ExecStartPre=/usr/sbin/squid -z
+ExecStart=/usr/sbin/squid -NYC
+ExecStop=/usr/sbin/squid -k shutdown
+ExecReload=/usr/sbin/squid -k reconfigure
+
+[Install]
+WantedBy=multi-user.target