Merge branch 'main' of github.com:hackerschoice/segfault

This commit is contained in:
SkyperTHC 2023-11-07 08:17:57 +00:00
commit b4275a826f
No known key found for this signature in database
GPG Key ID: A9BD386DF9113CD6
2 changed files with 4 additions and 2 deletions

@ -107,7 +107,7 @@ services:
restart: ${SF_RESTART:-on-failure}
cgroup_parent: sf.slice
volumes:
- "${SF_BASEDIR:-.}/config/etc/logpipe/config.yaml:/app/config.yaml:ro"
- "${SF_BASEDIR:-.}/config/etc/logpipe/:/app/config/:ro"
- "/dev/shm/sf/run/logpipe/:/app/sock/:rw"
sf-portd:

@ -21,7 +21,7 @@ type LogPipe struct {
func main() {
lp := LogPipe{}
fbytes, ferr := os.ReadFile("config.yaml")
fbytes, ferr := os.ReadFile("./config/config.yaml")
if ferr == nil {
err := yaml.Unmarshal(fbytes, &lp)
if err != nil {
@ -47,6 +47,8 @@ func listenOnSocket(socketFile string) {
return
}
os.Chmod(socketFile, 0777)
for {
conn, err := listener.Accept()
if err != nil {