DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th May 2017
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default /etc/daily gives incorrect warning

Every morning I see this error from /etc/daily:

Services that should be running but aren't:
cupsd

But cupsd is running (see below). After looking at the script I see that this message is coming from rcctl, and I can produce it by running rcctl manually, Something incorrectly configured?

ps ax | grep cupsd:
17154 ?? Is 0:00.03 cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
Reply With Quote
  #2   (View Single Post)  
Old 11th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,974
Default

Quote:
Originally Posted by acampbell View Post
Something incorrectly configured?
Maybe. Post the contents of /etc/rc.conf.local, that's the key file for daemon provisioning.
Reply With Quote
  #3   (View Single Post)  
Old 11th May 2017
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default

Code:
xdm_flags=NO
pkg_scripts=cupsd
Thanks. Oddly enough, after I loaded this file and reinstalled it the error has gone away: 'rcctl. ls failed' no longer give the error!

Last edited by ocicat; 12th May 2017 at 07:12 AM. Reason: Please use [code] & [/code] when posting file contents.
Reply With Quote
  #4   (View Single Post)  
Old 11th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,974
Default

The file looks fine. I note you are not running the messagebus daemon, a component of x11/dbus. It is used for communication between X applications and CUPS.

daily(8) is a shell script. It checks for services by issuing rcctl(8) with the parameters "ls failed" to look for services which should be running, but are not.

rcctl(8) is a shell script. The "ls failed" parameters run rc.d(8) "check" commands for all started daemons. For CUPS, it will run # /etc/rc.d/cupsd check. According to rc.subr(8), this will run a pgrep(1) with the $pexp variable. For /etc/rc.d/cupsd, that's "${daemon} .*" or, when expanded, "/usr/local/sbin/cupsd .*"

Last edited by jggimi; 11th May 2017 at 11:28 PM. Reason: typo
Reply With Quote
  #5   (View Single Post)  
Old 11th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,974
Default

Looking at /etc/rc.d/rc.subr for the specific pgrep(1) command string, it's
Code:
pgrep -T "${daemon_rtable}" -q -xf "${pexp}"
Reply With Quote
  #6   (View Single Post)  
Old 12th May 2017
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default

Thanks for these pointers. I didn't know about messagebus - I've now added it to rc.conf.local and will read up about it if I can find any documentation.
Reply With Quote
  #7   (View Single Post)  
Old 12th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,974
Default

You'll find provisioning guidance in /usr/local/share/doc/pkg-readmes/ and deep background on Wikipedia: https://en.wikipedia.org/wiki/D-Bus
Reply With Quote
  #8   (View Single Post)  
Old 12th May 2017
acampbell acampbell is offline
Real Name: Anthony Campbell
Shell Scout
 
Join Date: Sep 2014
Location: London, UK
Posts: 138
Default

Thanks, that's useful.
Reply With Quote
  #9   (View Single Post)  
Old 12th May 2017
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 6,974
Default

Some applications (such as Gnome) require it. Others (such as CUPS) do not require it if X is not used.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
patch for CVE-2012-2110 - incorrect? jsmith6134 OpenBSD Security 2 23rd April 2012 12:15 PM
How to fix this perl: warning? sw2wolf OpenBSD General 0 22nd March 2012 08:10 AM
FreeBSD server, Windows clients, daily backups Weaseal FreeBSD General 4 25th December 2008 05:50 PM
Incorrect df results (not -h, not a FAQ) nathang FreeBSD General 5 8th June 2008 06:44 AM


All times are GMT. The time now is 06:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick