/srv/irclogs.ubuntu.com/2021/11/23/#ubuntu-server.txt

=== genii is now known as genii-core
lordievaderGood morning08:16
=== caribou_ is now known as caribou
=== genii-core is now known as genii
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 stops19:28
tomreyntheGoat_: installed how? which virtualization? what exactly stops?19:43
theGoat_romreny: running on esxi, and it's squid that's stopping19:43
tomreynthanks for answering two of three questions. feel free to also answer the third.19:45
theGoat_oh my bad.  compiled squid from source19:46
tomreynhmm, i guess that puts you into exclusive charge of making it work. have you checked the logs?19:46
sarnoldyou could strace it and see what it stopped on19:49
sarnoldsquid's usual problem is taking two minutes to shutdown when rebooting the computer19:49
theGoat_sarnold: it's just during startup and shut down.  if i run it manually from a command line it's fine.20:02
oerheksjournalctl -u squid.service # might give a clue?20:05
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 running20:10
sarnoldoh I wonder, did you supply your own systemd service file?20:11
sarnoldsystemd has a handful of different modes for starting services, and one of them requires the application to tell systemd when it's up and running20:11
theGoat_i grabbed the one from the squid source when i built it20:15
theGoat_https://pastebin.com/dfetwLp420:15
theGoat_systemd is all really new to me, so i am kind of lost on how it works20:16
sarnoldtheGoat_: https://www.freedesktop.org/software/systemd/man/systemd.service.html#NotifyAccess=20:17
sarnoldtheGoat_: https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type=20:18
sarnoldtheGoat_: do you need to do anything to tell squid to use these apis? when you built it did you configure this API?20:18
theGoat_no, i didn't specify any of that20:19
sarnoldah20:19
theGoat_think i got it.  i set type to forking, and adjusted a few other things and all seems good now.20:36
sarnoldnice20:37

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!