[08:16] <lordievader> Good morning
[19:28] <theGoat_>  hi all..   i just spun up a 20.04 vm with squid, only issue i am having is trying it to get it to start with systemd.  when i start it, it'll sit there for a while (it appears to be running and serving pages), but then it just stops
[19:43] <tomreyn> theGoat_: installed how? which virtualization? what exactly stops?
[19:43] <theGoat_> romreny: running on esxi, and it's squid that's stopping
[19:45] <tomreyn> thanks for answering two of three questions. feel free to also answer the third.
[19:46] <theGoat_> oh my bad.  compiled squid from source
[19:46] <tomreyn> hmm, i guess that puts you into exclusive charge of making it work. have you checked the logs?
[19:49] <sarnold> you could strace it and see what it stopped on
[19:49] <sarnold> squid's usual problem is taking two minutes to shutdown when rebooting the computer
[20:02] <theGoat_> sarnold: it's just during startup and shut down.  if i run it manually from a command line it's fine.
[20:05] <oerheks> journalctl -u squid.service # might give a clue?
[20:10] <theGoat_> squid.service: Failed with result 'timeout'.
[20:10] <theGoat_> Nov 23 20:09:16 jamesmonroe systemd[1]: Failed to start Squid Web Proxy Server.
[20:10] <theGoat_> it's strange though, the whole time it's sitting there appearing to start, it's actually running
[20:11] <sarnold> oh I wonder, did you supply your own systemd service file?
[20:11] <sarnold> systemd has a handful of different modes for starting services, and one of them requires the application to tell systemd when it's up and running
[20:15] <theGoat_> i grabbed the one from the squid source when i built it
[20:15] <theGoat_> https://pastebin.com/dfetwLp4
[20:16] <theGoat_> systemd is all really new to me, so i am kind of lost on how it works
[20:17] <sarnold> theGoat_: https://www.freedesktop.org/software/systemd/man/systemd.service.html#NotifyAccess=
[20:18] <sarnold> theGoat_: https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=
[20:18] <sarnold> theGoat_: do you need to do anything to tell squid to use these apis? when you built it did you configure this API?
[20:19] <theGoat_> no, i didn't specify any of that
[20:19] <sarnold> ah
[20:36] <theGoat_> think i got it.  i set type to forking, and adjusted a few other things and all seems good now.
[20:37] <sarnold> nice