Project

General

Profile

Actions

Bug #3377

open

newsyslog fails to rotate syslog logs

Added by arcade@b1t.name about 2 months ago. Updated 21 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
12/19/2024
Due date:
% Done:

0%

Estimated time:

Description

So:

newsyslog: can't notify daemon, pid 3476 = /var/run/syslog.pid: Operation not permitted

The pid is corect, `ping -1 -F /var/run/syslog.pid`, the only difference is `syslogd` is running under `svc`.

Actions #1

Updated by daftaupe about 2 months ago

I guess you meant ls instead of ping.

Which file are you trying to rotate ? And what does "the only difference is `syslogd` is running under `svc`." ? Is svc a system user of some sort ?

Actions #2

Updated by arcade@b1t.name about 2 months ago

Sorry, s/ping/pkill/: `pkill -1 -F /var/run/syslog.pid` is actually working.

`svc` is a /sbin/svc, we have it since 4.0, it can be used to automatically to set up/control/jail service. I'm using custom init, that can use svc/daemon/plain service startup.

Actions #3

Updated by arcade@b1t.name 21 days ago

Actually, sometimes I can even hit it from shell:

# pkill -1 -F /var/run/syslog.pid
pkill: signalling pid 1117: Operation not permitted
# kill -1 1117
1117: Operation not permitted
Actions

Also available in: Atom PDF