← prev | next →
Spektrum_light 2022-09-16 20:17:25
qontinuum 2022-09-16 20:17:14
Then you can write a script using ip to set your stuff manually
tru
qontinuum 2022-09-16 20:17:31
Not a script, a service*
qontinuum 2022-09-16 20:17:37
A oneshot
capezotte 2022-09-16 20:23:22
s6-socklog lolol
capezotte 2022-09-16 20:23:34
the dumbest smartest syslog
qontinuum 2022-09-16 20:24:37
capezotte 2022-09-16 20:23:34
the dumbest smartest syslog
Is it a real syslog implementation or it is just like svlogd?
capezotte 2022-09-16 20:24:45
qontinuum 2022-09-16 20:24:37
Is it a real syslog implementation or it is just like svlogd?
real syslog
qontinuum 2022-09-16 20:25:05
capezotte 2022-09-16 20:24:45
real syslog
Cringe
capezotte 2022-09-16 20:25:24
qontinuum 2022-09-16 20:25:05
Cringe
some services only send their logs thru it
qontinuum 2022-09-16 20:25:58
capezotte 2022-09-16 20:25:24
some services only send their logs thru it
Yeah I know, did you just fucking preshot my answer?
capezotte 2022-09-16 20:27:05
well, regex and stuff are in s6-log
capezotte 2022-09-16 20:27:23
socklog only logs progname, pid, claimed date time and level
Senderman 2022-09-16 20:29:59
so s6-socklog is to pipe /dev/log to s6-log ?
capezotte 2022-09-16 20:30:00
and it’s so 🅱orda🅱le you can lie to it
capezotte 2022-09-16 20:30:08
Senderman 2022-09-16 20:29:59
so s6-socklog is to pipe /dev/log to s6-log ?
pretty much
capezotte 2022-09-16 20:30:27
because /dev/log is not a pipe
qontinuum 2022-09-16 20:30:57
capezotte 2022-09-16 20:30:27
because /dev/log is not a pipe
What is it already? Char device?
capezotte 2022-09-16 20:31:22
qontinuum 2022-09-16 20:30:57
What is it already? Char device?
s o c k i t
Senderman 2022-09-16 20:31:37
socket in /dev
Senderman 2022-09-16 20:31:38
okay
qontinuum 2022-09-16 20:31:46
capezotte 2022-09-16 20:31:22
s o c k i t
Ah okay
capezotte 2022-09-16 20:32:34
char device would be cursed
Senderman 2022-09-16 20:32:55
/dev/myCoolProgram goes brrrr
qontinuum 2022-09-16 20:33:06
capezotte 2022-09-16 20:32:34
char device would be cursed
I don’t even know what it exactly is and what it is used for
capezotte 2022-09-16 20:34:38
qontinuum 2022-09-16 20:33:06
I don’t even know what it exactly is and what it is used for
/dev/zero, /dev/random are iirc
lanciagreggori 2022-09-16 20:34:48
qontinuum 2022-09-16 19:38:31
Maybe it is even a good starting point to learn how to implement it yourself
https://git.busybox.net/busybox/tree/sysklogd/syslogd.c
I barely understand the code, but I think I got the gist of it.
Ok so this is what basically syslogd does:
1- open a socket at /dev/log and just listen
lanciagreggori 2022-09-16 20:35:09
lanciagreggori 2022-09-16 20:34:48
I barely understand the code, but I think I got the gist of it.
Ok so this is what basically syslogd does:
1- open a socket at /dev/log and just listen
2- programs will either use syslog(3) or logger(1) to write to said socket
lanciagreggori 2022-09-16 20:35:16
I think I’m right, right?
qontinuum 2022-09-16 20:37:53
lanciagreggori 2022-09-16 20:35:16
I think I’m right, right?
And it writes to files or whatever fd
lanciagreggori 2022-09-16 20:38:34
Well, time to learn UNIX socket programming
lanciagreggori 2022-09-16 20:38:43
Cause I have no idea how sockets work
qontinuum 2022-09-16 20:39:21
lanciagreggori 2022-09-16 20:38:34
Well, time to learn UNIX socket programming
Socket programming is socket programming as far as I know so you will just learn it and will learn how to do low level networking
qontinuum 2022-09-16 20:39:35
lanciagreggori 2022-09-16 20:38:43
Cause I have no idea how sockets work
Pretty simple and interesting
Senderman 2022-09-16 20:41:34
tfw when you run your telegram bot on artix server, supervise it using s6 and log it using s6-log, connect to database via unix domain socket and.. it is a bigass 120MB java server
qontinuum 2022-09-16 20:42:24
@capezotte what distribution your bot is running on BTW?
← prev | next →