[Userland] [OpenIndiana Distribution - Feature #4140] rsyslog method doesn't support restart (stop) action
illumos project
devnull at illumos.org
Sun Oct 20 05:01:53 UTC 2013
Issue #4140 has been updated by Ken Mays.
Category set to SFW (Solaris Freeware)
Assignee set to OI Userland
Tags changed from needs-triage to rsyslog
----------------------------------------
Feature #4140: rsyslog method doesn't support restart (stop) action
https://www.illumos.org/issues/4140
Author: Predrag Zečević
Status: New
Priority: Normal
Assignee: OI Userland
Category: SFW (Solaris Freeware)
Target version:
Difficulty: Medium
Tags: rsyslog
Hi,
I am using latest */hipster* distribution:
<pre>
SunOS Release 5.11 Version illumos-2810337 64-bit
</pre>
and tried to replace _system-log:default_ with _system-log:rsyslog_ service:
<pre>
$ 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
</pre>
service goes to maintenance, but process still runs:
<pre>
$ 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.
</pre>
and log shows just nothing:
<pre>
$ 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. ]
</pre>
So, if I kill ("stop") process, then enable works:
<pre>
$ 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
</pre>
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.
--
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://www.illumos.org/my/account
More information about the Userland-team
mailing list