[OpenIndiana-discuss] /hipster: rsyslog question

Predrag Zečević - Unix Systems Administrator predrag.zecevic at 2e-systems.com
Tue Jul 14 11:50:00 UTC 2015


On 07/14/15 01:47 PM, Predrag Zečević - Unix Systems Administrator wrote:
> On 07/14/15 12:30 PM, Alexander Pyhalov wrote:
>> On 07/14/2015 10:31, Predrag Zečević - Unix Systems Administrator wrote:
>>> Hi all,
>>> That dumpadm was started AFTER 1st attempt of rsyslog... Also, sym-link
>>> confirmes that:
>>>
>>> $ ls -alL /dev/dump
>>> crw-rw---- 1 root sys 281, 0 Jul 14 08:52 /dev/dump
>>> $ ls -al /dev/dump
>>> lrwxrwxrwx 1 root root 29 Nov 21  2013 /dev/dump ->
>>> ../devices/pseudo/dump at 0:dump
>>> $ ls -al /devices/pseudo/dump at 0:dump
>>> crw-rw---- 1 root sys 281, 0 Jul 14 08:52 /devices/pseudo/dump at 0:dump
>>>
>>> So, how I can make either that dumpadm runs BEFORE rsyslog or rsyslog
>>> AFTER dumpadm?
>>>
>>> Any ideas?
>>
>> Hi. Try to look at syslog dependencies. It seems some of them should be
>> added to rsyslog.
>
>
> Hi Alexander,
>
> look like that was problem (attached modified version here - changes
> merged from /lib/svc/manifest/system/system-log.xml - only dependency
> sections):
>
> $ pfexec svccfg validate manifest-rsyslog.xml
> [no error]
> $ pfexec svccfg import manifest-rsyslog.xml
> [no error]
> $ pfexec svcadm refresh rsyslog
> $ pfexec svcadm restart rsyslog
> [no error]
>
> $ tail -10 $(svcs -L rsyslog)
> [ Jul 14 08:52:13 Executing start method ("/lib/svc/method/rsyslog"). ]
> [ Jul 14 08:52:13 Method "start" exited with status 0. ]
> [ Jul 14 12:57:22 Rereading configuration. ]
> [ Jul 14 12:57:23 Executing refresh method (:kill). ]
> [ Jul 14 12:57:33 Rereading configuration. ]
> [ Jul 14 12:57:33 Executing refresh method (:kill). ]
> [ Jul 14 12:57:38 Stopping because service restarting. ]
> [ Jul 14 12:57:38 Executing stop method (:kill). ]
> [ Jul 14 12:57:38 Executing start method ("/lib/svc/method/rsyslog"). ]
> [ Jul 14 12:57:38 Method "start" exited with status 0. ]
>
> Verifying changes:
> $ pfexec svccfg export system/system-log
>
> Will wait until next reboot, for final confirmation.
>
> Thank you for tip.
> With best regards.
>

Attachment was removed, so:
$ pfexec svccfg export system/system-log
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM 
'/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<service_bundle type='manifest' name='export'>
   <service name='system/system-log' type='service' version='0'>
     <create_default_instance enabled='false'/>
     <instance name='rsyslog' enabled='true'>
       <dependency name='milestone' grouping='require_all' 
restart_on='none' type='service'>
         <service_fmri value='svc:/milestone/sysconfig'/>
       </dependency>
       <dependency name='filesystem' grouping='require_all' 
restart_on='none' type='service'>
         <service_fmri value='svc:/system/filesystem/local'/>
       </dependency>
       <dependency name='autofs' grouping='optional_all' 
restart_on='none' type='service'>
         <service_fmri value='svc:/system/filesystem/autofs'/>
       </dependency>
       <dependency name='name-services' grouping='require_all' 
restart_on='none' type='service'>
         <service_fmri value='svc:/milestone/name-services'/>
       </dependency>
       <dependent name='system-log_single-user' restart_on='none' 
grouping='optional_all'>
         <service_fmri value='svc:/milestone/multi-user'/>
       </dependent>
       <exec_method name='start' type='method' 
exec='/lib/svc/method/rsyslog' timeout_seconds='600'/>
       <exec_method name='stop' type='method' exec=':kill' 
timeout_seconds='60'/>
       <exec_method name='refresh' type='method' exec=':kill -HUP' 
timeout_seconds='60'/>
       <template>
         <common_name>
           <loctext xml:lang='C'>reliable and extended system log 
daemon</loctext>
         </common_name>
         <documentation>
           <manpage title='rsyslogd' section='1M' manpath='/usr/share/man'/>
         </documentation>
       </template>
     </instance>
   </service>
</service_bundle>

-- 
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:    +49  174 3109 288,     Skype: predrag.zecevic
E-mail:    predrag.zecevic at 2e-systems.com

Headquarter:          2e Systems GmbH, Königsteiner Str. 87,
                       65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:    Phil Douglas

http://www.2e-systems.com/ - Making your business fly!



More information about the openindiana-discuss mailing list