-
CrtxReavr
So. . . I have apache24 running on 12.4-RELEASE-p4 and it works, but. . .
-
CrtxReavr
After the host boots, apache logs just find, but after log rotation, the access logs stop getting logged to.
-
CrtxReavr
Restarting apache doesn't help.
-
CrtxReavr
Restarting newsyslog doesn't help.
-
RhodiumToad
how are you rotating the logs?
-
CrtxReavr
newsyslog
-
CrtxReavr
/var/log/trioptimum.com-access_log 640 10 200 @0101T JC
-
RhodiumToad
that's not going to work well
-
CrtxReavr
I'm open to recommendations.
-
RhodiumToad
so the best solution is probably to log to a program that does the rotation
-
CrtxReavr
Well. . . that's always worked for me before.
-
RhodiumToad
otherwise, you have to arrange to do an apachectl graceful after the log rotation and _not_ use any compression options
-
CrtxReavr
Is that what the 'C' option is?
-
RhodiumToad
J
-
RhodiumToad
C is to create the file (which should be ok)
-
RhodiumToad
if you want to compress the files, you need to wait a significant time (10+ minutes, depending on how long you allow persistent connections to last) before doing it
-
RhodiumToad
(because existing sessions will still be writing to the old log file)
-
CrtxReavr
I'll try with compression disabled.
-
CrtxReavr
Does apache support loggin to syslogd's localX?
-
RhodiumToad
not afaik.
-
skered
RhodiumToad: You should be able to have apache close/open the file.
-
RhodiumToad
but it can log to a program, and that program could be 'logger'
-
skered
move file, signal apache, it closes/opens, then you compress
-
RhodiumToad
skered: pretty sure only apachectl graceful does it
-
RhodiumToad
-
VimDiesel
Title: Log Files - Apache HTTP Server Version 2.4
-
CrtxReavr
Thanks. .. I thnk for now disabling compression fixes the primary issue. . . I'll read & think about a better solution.
-
skered
RhodiumToad: That's USR1.
-
skered
So you give newsyslog the location of the PID file and the signal to send to it.
-
CrtxReavr
What would that newsyslog config look like?
-
skered
Look at /etc/newsyslog.conf comments
-
RhodiumToad
skered: you still have to disable compression at least for the first file
-
skered
I think it's what you have plus "... /path/to/pid signal"
-
CrtxReavr
sig1?
-
RhodiumToad
try /var/log/trioptimum.com-access_log 640 10 200 @0101T CBJp /path/to/pid SIGUSR1
-
RhodiumToad
the 'p' flag tells it not to compress the .0 file
-
skered
USR1. But maybe RhodiumToad is right... How does newsyslog know it's ready to compress
-
RhodiumToad
by the time the .0 file gets rotated to .1, it should be safe :-)
-
CrtxReavr
Maybe some of that syntax in the "when" column.
-
RhodiumToad
wait, 200kbytes? that seems small
-
skered
Yeah, if it's his a service you care about them someone can DOS the log files.
-
CrtxReavr
That does seem small.
-
RhodiumToad
obviously it's 200kbytes or 1 hour, assuming you're running newsyslog once per hour as usual
-
RhodiumToad
or apparently 1 month from your "when" syntax
-
bsdbandit01_
owwww yip yip feeling super hyped
-
bsdbandit01_
i finally got suspend and resume to work on freebsd running on thinkpad x1 extereme gen 3
-
signalblue
bsdbandit01_: awesome
-
signalblue
that's good to hear, I have an Intel T16 Gen 1
-
CrtxReavr
signalblue, you mean Lenovo?
-
concrete_houses
sometimes freebsd slows down with many browser tab and qbittorent running and top shows very low laod avg liek 1 or under
-
concrete_houses
is top not working
-
concrete_houses
qbittorrent sometime fills swap 16g on my z250 8x3ghz cpu i7 8g ram
-
concrete_houses
so i turned off os cache in qbittorrent
-
concrete_houses
seems be working better
-
concrete_houses
mostly things run great
-
concrete_houses
firefox will not save web pages correctly soemtimes
-
concrete_houses
chroem does
-
RhodiumToad
load average is about cpu, if you're swapping heavily then the load average will be low
-
RhodiumToad
(since everything is waiting for swap)
-
RhodiumToad
top has a line about swap usage which includes "In" and "Out" stats, if those show up you know you are actively swapping
-
concrete_houses
ok
-
concrete_houses
can I switch audio in chrome to earphone without restart of chrome?
-
concrete_houses
hw.snd.default_unit: 0 -> 1
-
concrete_houses
I have a little script that changes this setting
-
concrete_houses
but lose all my tabs if I restart chrome
-
concrete_houses
gaa!!
-
concrete_houses
RhodiumToad: are you a big postgresql user?
-
concrete_houses
you handle looks familiar
-
RhodiumToad
user, contributor, (occasional) committer
-
» RhodiumToad knows little of chrome, sorry
-
LambdaComplex
RhodiumToad: ...where's the line between contributor and committer?
-
» LambdaComplex knows little of the postgresql dev process, sorry
-
RhodiumToad
pg has a relatively small set of committers
-
LambdaComplex
so is it more like "you submit a patch to a mailing list and someone else commits?"
-
RhodiumToad
yes, except that there's a review process and a tracking system
-
pstef_
I think the review process and specifically the requirement to have someone else commit your changes is something FreeBSD should borrow from Postgres
-
paulf
I think that hurdles like that do more harm than good
-
RhodiumToad
swings and roundabouts
-
RhodiumToad
as a non-committer to freebsd I find things extremely frustrating; contributions go ignored both before and after review
-
paulf
They discourage code cleaning and refactoring and the end result is code rot and basically an unmaintable mess for a code base
-
RhodiumToad
but note, it's normal for postgres committers to commit their own work
-
RhodiumToad
which "they"?
-
paulf
intrusive process hurdles
-
mage
I don't get it why FreeBSD and/or PostgreSQL doesn't have a self-hosted gitlab-like instance, it's so much easier to manage contributions, ci/cd, etc :)
-
RhodiumToad
some pg devs aren't big fans of web interfaces and want to do everything by email
-
paulf
mind you I've also worked on (and continue to work on) code that looks like a midden that had almost no barriers on committing changes
-
mage
RhodiumToad: right, but for the FreeBSD folks I think it would be nice (it could replace Phabricator, Jenkins, maybe Bugzilla, etc )
-
pstef_
that reminds me of bde replying to bugzilla comments by email (to the mailing list)
-
paulf
linux glibc gcc etc all seem to like reviewing patches by email
-
mage
paulf: yeah, I guess through some vimdiff-like $EDITOR
-
dvl
Updating FreshPorts - I noticed some unpatched vulns.Let's be truthful there. Nagios told me. Because vuxml was updated. Thanks #FreeBSD.
-
dvl
no, not sarcasm. It was thanks for giving me the tools so I can automatically monitor the vulns.
-
dvl
Done.
-
meena
dvl: cool
-
meena
since i can't figure out how to tell my VMs that they've been woken up from sleep, I'm gonna put service ntpd restart into cron…
-
CmdLnKid
meena, why not just disable ntpd and setup ntpdate(1) through cron
-
meena
that would do the same… hrm…
-
CmdLnKid
*/20 * * * * root /sbin/ntpdate -b ...
-
CmdLnKid
i do the same in my VB vm's
-
meena
CmdLnKid: what do i fill into the … ?
-
CmdLnKid
time.nist.gov
-
CmdLnKid
your ntpserver
-
CmdLnKid
incase you are wondering ... ntpdate will not set the time if ntpd is running
-
meena
i disabled (open)ntpd
-
CmdLnKid
wish we had a updated guest additions... this would be so much easier
-
bsdbandit01_
good morning everyone
-
rogersm
team, after a freebsd update, does the update process leave the old fstab someplace I can check?
-
meena
CmdLnKid: right, i should look into that.
-
CmdLnKid
its there its just not quite as easy as one would think.
-
CmdLnKid
neuter it, without the fs stuff and i think it'd still be worth while
-
CmdLnKid
one could argue we don't need it to report mem and disk usage as well and then it would just be a overhyped time server ;)
-
meena
heh
-
meena
CmdLnKid: is this virtualbox guest addtions, or qemu?
-
CmdLnKid
vb guest additions
-
CmdLnKid
maybe there is a setting to ntpd to just adjust the time no matter how far its off but i never looked into that
-
V_PauAmma_V
There is, IIRC.
-
meena
CmdLnKid: ntpd itself crashes when the time is too far, but it will happily start up, with the right setting
-
meena
openntpd, otoh, does… nothing, until you restart it
-
CmdLnKid
stable/13 ntpd just sits there for me and refuses to update the current time
-
Demosthenex
always slew time :P
-
CmdLnKid
been that way for me since stable/10 ish
-
V_PauAmma_V
-g, in 13.2.
-
Demosthenex
so now not just iburst, but panic sync first up? wow
-
CmdLnKid
i get the refusal to update the time considering time attacks are real but see no real way to say do it anyway
-
Demosthenex
i like that there's sanitychecks. manually sync once, and then slew forever.
-
CmdLnKid
i wouldn't even know where to begin hacking on that problem. those ntp folks are on a whole other math level than me
-
CmdLnKid
itd be great if we had a native module with some sort of standard on what to expect to adjust the time and do basic stats etc.. that additions provide
-
CmdLnKid
fs integrations are just not needed in my case at all
-
Demosthenex
CmdLnKid: set the -g like V_PauAmma_V said, and also set slew with -x
-
Demosthenex
on startup it should panic sync, and then maintain
-
Demosthenex
for ntpd
-
CmdLnKid
i just hadn't looked into it yet. so really don't know where or what to begin setting it to as i have a local ntp server that excepts queries local net and ntpdate has sufficed through cron
-
CmdLnKid
not like they are production anyway
-
signalblue
CrtxReavr: I mean Lenovo, yes.
-
CrtxReavr
Um. . . you can sync an ntpd with time.nist.gov, but don't point your end-clients at it. . . be a good ntp citizen.
-
CrtxReavr
I would just point your ntpd at the 0.CC.pool.ntp.org servers the FreeBSD project maintains. . . they do a very good job.
-
CrtxReavr
signalblue, I thought you meant a Thinkpad.
-
V_PauAmma_V
0.freebsd.pool.ntp.org I think? I'm not sure 0.CC.pool.ntp.org is FreeBSD.
-
CmdLnKid
point at your closest ntp server.... for me thats the one closest to my edge of operation
-
signalblue
I do mean a Thinkpad CrtxReavr
-
signalblue
Lenovo is the brand and Thinkpad is the model
-
CrtxReavr
V_PauAmma_V, oh - fair enough.
-
CrtxReavr
signalblue, I'm very aware.
-
signalblue
CrtxReavr: then why get caught up in semantics
-
CrtxReavr
I remember when ThinkPads were made in the US by IBM.
-
signalblue
And so do I.
-
signalblue
They are still designed in the US.
-
CrtxReavr
And I remember when IBM started outsourcing manufacturing to Lenovo. . . and when Lenovo purposely started doing shit manufacturing to cheapen the ThinkPad brand. . . and then bought the Thinkpad name at a bargain price.
-
signalblue
the one I have is made in Japan
-
signalblue
Lenovo purposely started doing shit manufacturing to cheapen the ThinkPad brand?
-
CrtxReavr
signalblue, yes. . . about 10 minutes down the road from me.
-
signalblue
I think I know what you're talking about, can you elaborate?
-
CrtxReavr
Matter of fact, I used to work in building, originally built by IBM which was the warehouse where PC were customized before being shipped.
-
signalblue
huh, very interesting.
-
CrtxReavr
We turned it into an 800,000 sqft. lab for developing and testing storage products.
-
CrtxReavr
(EMC)
-
signalblue
Dell?
-
CrtxReavr
Still there. . . just says "Dell-EMC" out front.
-
signalblue
interesting... good to know
-
CrtxReavr
That one building is Duke Power's largest customer.
-
signalblue
if not the thinkpad, which modern laptop do you recommend power users purchase for long-term ownership?
-
CrtxReavr
ThinkPads are still solid laptops. . .
-
CmdLnKid
a macbook
-
CrtxReavr
Though. . . I do sorry about chinese chips spying on their users, whether that's a valid worrry or not.
-
signalblue
yes, thinkpads are still solild. mine has all of the hallmarks of older designs.
-
» CrtxReavr hates Apple hardware.
-
CrtxReavr
Shit keyboards.
-
CrtxReavr
Shit touchpads.
-
signalblue
CrtxReavr: I don't believe it to be a valid worry.
-
CrtxReavr
Shit UI.
-
CmdLnKid
the power you want, the bus speed you need, the memory you want and fluidity
-
CrtxReavr
signalblue, it certainly was for SuperMicro.
-
signalblue
CmdLnKid: I can't stand using macbooks, i've tried and it's just not for me.
-
CmdLnKid
expensive but you have a bsd underpinning
-
» CrtxReavr remember when SuperMicro also meant US-manufactured, high-quality server/workstation boards.
-
signalblue
though credit where it's due, apple sillicon is highly rated.
-
CrtxReavr
CmdLnKid, not so much anymore.
-
signalblue
bsd underpinning is possible on any hardware due to the nature of bsd
-
CmdLnKid
as close as you get a as a client
-
CrtxReavr
OSX/macOS hasn't had a BSD kernel in a long time.
-
CmdLnKid
you are not getting closer
-
CrtxReavr
10l2?
-
signalblue
my production web server is 13.2 on Hyper-V on a Windows 11 Pro workstation that's 7 years old
-
signalblue
everything is stable
-
CrtxReavr
er - 10.2
-
CrtxReavr
I'm not saying the move to a Mach kernel was a bad done, but it's gotten further and further from its BSD roots.
-
CmdLnKid
typical
-
debdrup
OS X always had a Mach based kernel with BSD bits. Are you thinking of Mac OS Classic?
-
debdrup
Considering that the BSD bits consisted of the VFS, netstack, process model, and command line utilities, it was never really that much BSD either.
-
debdrup
It becomes broadly POSIX compatible because it has those bits, and one version was even certified by Open Group for the purposes of marketing (it has to be renewed for every version to count, which Apple didn't do, to the surprise of absolutely nobody), but it's not meaningfully important nowadays since there's nothing that uses any of the BSD syscalls when it runs (at least as far as I've tested).
-
debdrup
OS X was built the way it was because of Jobs' time at NeXT, which combined Mach from CMU with bits from BSD.
-
CrtxReavr
10:35 < debdrup> OS X always had a Mach based kernel with BSD bits. Are you thinking of Mac OS Classic?
-
CrtxReavr
That's insulting nonsense.
-
CrtxReavr
The original MacOS, was cooperatively mulit-tasking garbage, that had zero to do with UNIX or BSD.
-
Schamschula
However, there was A/UX which was BSD based.
-
CrtxReavr
OSX (or MacOS v10) was absolutely BSD-based (Darwin?)
-
CrtxReavr
There's also a reason why Apple hired jkh.
-
CrtxReavr
Schamschula, sure - but that never ran on a "Macintosh" - It ran on the Apple IIgs.
-
CrtxReavr
(I had a friend who ran a BBS that offered shell access on it.)
-
Schamschula
Wrong! It ran on Macintosh II and up.
-
Schamschula
A family friend worked for the company in Berkeley that developed it. She was given a Mac II for her work.
-
CmdLnKid
regardless point being ... if you are confortable with freebsd you will be with macos, therefore making it a pretty great client system whether you are using macports or homebrew
-
CmdLnKid
its not the same as it used to be but don't get me wrong
-
redlegion
CmdLnKid: that's a fair statement, I think.
-
redlegion
I actually used FreeBSD and became comfortable with it first, so moving to MacOS was pretty straightforward.
-
redlegion
admittedly, going from a "distribution" to an "operating system" was a shock at first.
-
CrtxReavr
Schamschula, okay, it ran on some "Macs," but it absolutely ran on the IIgs.
-
Schamschula
Yup. I use FreeBSD as a replacement for the long abandoned MacOS X Server and macOS with MacPorts as my client platform.
-
CmdLnKid
not trying to promote macos in freebsd but when it comes to interective content and userland it seems the most conformative with the right amount of controls and responsiveness. ya just can get that anywhere else.
-
Schamschula
No. A/UX never ran on Apple IIs. It had a minimun hardware requirement of a 68020 and an FPU. See
en.wikipedia.org/wiki/A/UX
-
VimDiesel
Title: A/UX - Wikipedia
-
CmdLnKid
there just isn't a iterm2 in linux/bsd for term interaction
-
CmdLnKid
and thats not the showstopper
-
debdrup
CrtxReavr: go look at the source of Darwin, which is used to build modern macOS, and see how much (Free)BSD code is in there anymore:
github.com/apple-oss-distributions/distribution-macOS (hint, they're in XNU, which itself is a fairly small portion of macOS considering it doesn't include any of the GUI (and everything related to it like Cocoa, Metal, Core(Audio|Video), DriverKit/kext handling,
-
VimDiesel
Title: GitHub - apple-oss-distributions/distribution-macOS
-
debdrup
Xcode (which, granted, isn't part of the distribution, but you're not going to get very far in building macOS without it), and many many other things I'm sure I'm forgetting.
-
debdrup
Sorry, it's called IOKit.
-
Schamschula
First step in building anything in Homebrew or MacPorts: install Xcode (often the Command line tools will suffice)
-
debdrup
Schamschula: well, that's got more to do with Xcode including LLVM than the IDE itself
-
debdrup
Homebrew and MacPorts used to rely on GCC, I think?
-
Schamschula
Absolutely!
-
Schamschula
Way back, before Apple defaulted to LLVM/Clang
-
Schamschula
MacPorts still maintains ports for PPC based machines (10.6.x). They still use gcc.
-
kevans
debdrup: apple does unix certification for every major release of macOS
-
kevans
see
opengroup.org/openbrand/register, it's current up to 13.0 "Ventura" even
-
kevans
> not meaningfully important nowadays since there's nothing that uses any of the BSD syscalls when it runs (at least as far as I've tested).
-
kevans
this one's a bit vague to judge, but there's still a bunch of BSD utilities and libc under the hood that drives non-UI stuff
-
mason
The trick used to be going into /usr/lib or similar and "strings -a * | grep -i rcs" or somesuch to find CVS information.
-
kevans
you don't even necessarily need to go that far to see what's up with how much they publish to github these days
-
meena
z/OS is POSIX certified?!
-
kevans
-
VimDiesel
Title: text_cmds/grep at main · apple-oss-distributions/text_cmds · GitHub
-
meena
Also, I'm surprised Solaris isn't certified
-
kevans
certification takes both $$$ and time
-
kevans
there's a fairly extensive test suite that you actually have to mostly pass in order to become certified
-
kevans
you can see some details here, though it costs to actually get access to the test suites:
opengroup.org/testing/testsuites/unix.html
-
VimDiesel
Title: Test Suites - UNIX Systems
-
kevans
but I mean, just reviewing the descriptions of each of these, you can tell it's pretty extensive
-
paulf
too many standards and too many names for the same standard
-
paulf
but is anything SUSv4 certified?
-
paulf
imo SUS and OpenGroup and IEEE or whatever are all very nice but the 10 billion flies have settled on Linux
-
debdrup
kevans: top in macOS includes a column for BSD syscalls, and they're never used by anything I've ever run
-
kevans
this SYSBSD column is off the charts in a lot of processes on this Mac Studio serial console I have here
-
kevans
bluetoothd alone is sitting north of 20230000
-
kevans
oh, I probably haven't had a power outage lately
-
kevans
yeahhh 11:56 up 91 days, 9:03, 1 user, load averages: 0.80 0.78 0.75
-
debdrup
Maybe it's also the fact that I don't use my macbook pro anymore since I got a FreeBSD laptop.. :D
-
debdrup
It's clamshelled and in standby mode on my nightstand, and usually the TV remote is on top of it
-
signalblue
debdrup: oh cool what laptop is the FreeBSD laptop?
-
debdrup
T480s
-
signalblue
that is a really nice thinkpad
-
K5KGT
I'm on a T495s now, depends on what you want to do with it ;)
-
K5KGT
ran freebsd on it for quite some time, just happen to have Garuda linux on it now though
-
K5KGT
(sorry, I read "that" as "what", I saw a question where there wasn't one, I'll crawl back under my rock)
-
iomartin
I'm trying to write an rc.d script that needs to run with a specific group, as it will create a file that needs to be owned by root:mygroup. I set ${name}_group=mygroup but that doesn't work, it's owned by root:wheel. Changing the user works, though, via ${name}_user=. Any idea?
-
CrtxReavr
iomartin, you sourced /etc/rc.subr ?
-
RhodiumToad
iomartin: _group is respected only if _chroot is in use
-
iomartin
Hmm I see. What I'm actually trying to do is create a socket somewhere on /var/run/. I noticed that if I have _chdir as /var/run/foo and change the ownership of /var/run/foo to root:mygroup, then the socket is created with the correct ownership
-
iomartin
So now I just need to create that directory with the correct ownership
-
iomartin
Is there an option for that I should handle it in my _start? I'm currently only setting _chdir= and command=
-
RhodiumToad
right, group ownership of new files comes from the directory, _not_ the user
-
spork_css_
What source browsing tool is the current place to go these days to dig for a commit?
-
spork_css_
I'm looking at comment #28 in this bug and trying to figure out what the "fix" was:
bugs.freebsd.org/bugzilla/show_bug.cgi?id=221122
-
VimDiesel
Title: 221122 – Attaching interface to a bridge stops all traffic on uplink NIC for few seconds
-
spork_css_
(the fix seems to have been unfixed at some point, the problem persists)
-
RhodiumToad
iomartin: looks like creation of /var/run subdirs is usually done in a _prestart function
-
RhodiumToad
some packages create their /var/run/blah subdir on install (as a directory in the plist)
-
RhodiumToad
also there's an rc.conf option to save/restore the /var/run directory structure in case you have a tmpfs there
-
iomartin
Hmm thanks, let me look at _prestart
-
iomartin
It's working now \o/, thanks!
-
polyex
so anyone know easy way to read some text files on a ufs thumb drive on linux? need to get freebsd interop with linux
-
rtprio
cat /mnt/myfile.txt
-
rtprio
or do you mean 'how do i mount my thumb drive' ?
-
polyex
ya i guess maybe that's it
-
meena
polyex: some Linux systems have UFS compiled in
-
rtprio
do they really?
-
meena
I haven't compiled a Linux kernel in a long time, but i do remember that und FS section is excessive
-
meena
pretty sure UFS is among it, but which version that is is hard to tell
-
meena
and to be fair, ext2 and UFS are close relatives, so it makes sense
-
thedaemon
If anyone needs to know how to make Blender not lag, let me know. I found the fix.
-
pkubaj
i'm trying to set up a new home router with freebsd
-
pkubaj
i'm starting with a very simple pf.conf, just
pastebin.com/xxvgkwmp
-
VimDiesel
Title: int_if="{ bridge0 }"ext_if="dpni0"nat on $ext_if inet from !($ext_if) -> ($e - Pastebin.com
-
pkubaj
thing is, i have the full access to internet from my router and i can ping external hosts from behind the nat
-
pkubaj
i can also load websites via port 80, but loading anything via 443 just fails
-
pkubaj
but not when i try to curl something with https from the router itself
-
pkubaj
is there any sysctl i need to set?
-
pkubaj
or something in pf?
-
scoobybejesus
sounds weird. might need to keep state. not sure. perhaps you'll find something interesting here:
docs.freebsd.org/en/books/handbook/firewalls
-
VimDiesel
Title: Chapter 33. Firewalls | FreeBSD Documentation Portal
-
pkubaj
i added keep state, but doesn't help
-
rtprio
pkubaj: did you already add the forwarding sysctl? either with the rc parameter or sysctl.conf
-
pkubaj
rtprio: indeed, net.inet.ip.forwarding: 1
-
pkubaj
and i can actually ping external hosts from inside the nat just fine
-
rtprio
how are you testing https from the nat'd host?
-
pkubaj
e.g. curl -L -v freebsd.org
-
rtprio
and the error message is?
-
pkubaj
rtprio: no error, just hangs
-
pkubaj
oh, it finally timed out
-
pkubaj
* SSL connection timeout
-
pkubaj
* Closing connection 1
-
pkubaj
curl: (28) SSL connection timeout
-
rtprio
what about.. maybe something more determinstic
-
rtprio
-
VimDiesel
Title: The FreeBSD Project
-
rtprio
to that end, does it work on the box doing the nat
-
pkubaj
rtprio: that's the output from my router:
pastebin.com/u5SUAm4q
-
VimDiesel
Title: pkubaj@ten64:~ $ doas pfctl -snnat on dpni0 inet from 192.168.1.0/24 to any -> - Pastebin.com