Actions
Feature #4140
openrsyslog method doesn't support restart (stop) action
Start date:
2013-09-17
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
rsyslog
Description
Hi,
I am using latest /hipster distribution:
SunOS Release 5.11 Version illumos-2810337 64-bit
and tried to replace system-log:default with system-log:rsyslog service:
$ svcs -a | grep system-log disabled 10:45:23 svc:/system/system-log:default online 10:46:54 svc:/system/system-log:rsyslog $ pfexec svcadm restart system-log:rsyslog
service goes to maintenance, but process still runs:
$ ps -ef | grep rsyslog[d] global root 2749 1 0 11:10:39 ? 0:00 /usr/lib/rsyslog/rsyslogd -c4 $ svcs -xv svc:/system/system-log:rsyslog (reliable and extended system log daemon) State: maintenance since September 17, 2013 11:17:56 AM CEST Reason: Restarting too quickly. See: http://illumos.org/msg/SMF-8000-L5 See: man -M /usr/share/man -s 1M rsyslogd See: /var/svc/log/system-system-log:rsyslog.log Impact: This service is not running.
and log shows just nothing:
$ tail -10 /var/svc/log/system-system-log:rsyslog.log [ Sep 17 11:17:56 Method property group 'stop' is not present. ] [ Sep 17 11:17:56 Executing start method ("/lib/svc/method/rsyslog"). ] [ Sep 17 11:17:56 Method "start" exited with status 0. ] [ Sep 17 11:17:56 Stopping because all processes in service exited. ] [ Sep 17 11:17:56 Method property group 'stop' is not present. ] [ Sep 17 11:17:56 Executing start method ("/lib/svc/method/rsyslog"). ] [ Sep 17 11:17:56 Method "start" exited with status 0. ] [ Sep 17 11:17:56 Stopping because all processes in service exited. ] [ Sep 17 11:17:56 Method property group 'stop' is not present. ] [ Sep 17 11:17:56 Restarting too quickly, changing state to maintenance. ]
So, if I kill ("stop") process, then enable works:
$ pfexec kill -9 $(ps -ef | grep rsyslog[d] | awk '{print $3}') $ pfexec svcadm clear rsyslog $ svcs -xv $ ps -ef | grep rsyslog[d] global root 2913 1 0 11:21:55 ? 0:00 /usr/lib/rsyslog/rsyslogd -c4
So, looks like BOTH manifest and method files are not supporting all actions, just start (see attachment).
I guess it should be fixed, because all other SMF services works that way (and it went to maintenance mode silently).
Regards.
Files
Updated by Piotr Jasiukajtis over 8 years ago
- Project changed from illumos gate to OpenIndiana Distribution
Updated by Predrag Zečević over 8 years ago
Also,
enabling rsyslog should modify (if possible) /etc/logadm.conf entries for logs rotation...
Regards.
Updated by Ken Mays over 8 years ago
- Category set to 10
- Assignee set to OI Userland
- Tags changed from needs-triage to rsyslog
Actions