Summary: | net-analyzer/smokeping-2.7.3 files/smokeping.init.5 command_args="--nodaemon" stops smokeping from logging events | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | nic <nic> |
Component: | Current packages | Assignee: | Gentoo Netmon project <netmon> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | henson, mjo, nic |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=651646 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 631140 |
Description
nic
2018-03-23 00:31:55 UTC
The init script crash is related to the pid error smokeping throws; permission denied for that file is created with root:root ownership by start-stop-daemon. I was able to get this working by removing these lines: command_args="--nodaemon" command_background="true" Update the pid paths as /run/smokeping /etc/init.d/someping pidfile="/run/smokeping/${RC_SVCNAME}.pid" /etc/smokeping/config piddir = /run/smokeping Borrowing logic from the previous init script to create the run pid dir, add this to start_pre() if [ ! -d /run/smokeping/ ]; then mkdir /run/smokeping/ fi chown $command_user /run/smokeping/ That enabled smokeping to properly run in it's own daemon mode with syslog functionally, and suppress the errors generated by allowing it to create the pid file with smokeping:smokeping ownership. Thanks ;) |