[OpenIndiana-discuss] /hipster: rsyslog question

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


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.

-- 
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