Last active
November 14, 2024 10:53
-
-
Save Hanivan/1bc7c4fb7c9c2378a869f3dd5da5875d to your computer and use it in GitHub Desktop.
Revisions
-
Hanivan renamed this gist
Oct 3, 2024 . 1 changed file with 8 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,25 +4,29 @@ sudo apt install squid -y Edit /etc/squid/squid.conf Update > http_access deny all To > http_access allow all http_port `your-custom-port` Create file at `/usr/lib/systemd/system` Filename: squid-timer.service ============================= ```bash [Unit] Description=Service to trigger Squid restart timer [Service] Type=oneshot ExecStart=/bin/systemctl restart squid.service ``` Filename: squid-timer.timer =========================== ```bash [Unit] Description=Timer to restart Squid every 30 minutes @@ -32,3 +36,4 @@ Persistent=true [Install] WantedBy=timers.target ``` -
Hanivan revised this gist
Oct 3, 2024 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,14 @@ Install package squid sudo apt install squid -y Edit /etc/squid/squid.conf Update > http_access deny all To > http_access allow all http_port <your-custom-port> Create file at `/use/lib/systemd/system` Filename: squid-timer.service -
Hanivan revised this gist
Oct 3, 2024 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,18 +2,16 @@ Create file at `/use/lib/systemd/system` Filename: squid-timer.service ============================= [Unit] Description=Service to trigger Squid restart timer [Service] Type=oneshot ExecStart=/bin/systemctl restart squid.service Filename: squid-timer.timer =========================== [Unit] Description=Timer to restart Squid every 30 minutes @@ -23,4 +21,3 @@ Persistent=true [Install] WantedBy=timers.target -
Hanivan created this gist
Oct 3, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ Create file at `/use/lib/systemd/system` Filename: squid-timer.service ============================= ```bash [Unit] Description=Service to trigger Squid restart timer [Service] Type=oneshot ExecStart=/bin/systemctl restart squid.service ``` Filename: squid-timer.timer =========================== ```bash [Unit] Description=Timer to restart Squid every 30 minutes [Timer] OnCalendar=*:0/30 Persistent=true [Install] WantedBy=timers.target ```