Anonymous | Login | 2024-04-25 22:25 CEST |
Main | My View | View Issues |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
0005087 | [nrpe] regular use | major | always | 2013-07-04 11:27 | 2016-04-07 21:43 | ||
Reporter | cgrzemba | View Status | public | ||||
Assigned To | raos | ||||||
Priority | normal | Resolution | fixed | ||||
Status | closed | ||||||
Summary | 0005087: Skript Error: /var/opt/csw/svc/method/svc-cswnrpe: line 44: syntax error at line 58: `(' | ||||||
Description |
SMF cswnrpe is in maintenance because: root@delphi:/home/admin# sh -x /var/opt/csw/svc/method/svc-cswnrpe + BINDIR=/opt/csw/bin + BINFILE=/opt/csw/bin/nrpe + RUNFLAG=1 + uname -r + awk -F. '{print $2}' + SOLREL=11 + [ 11 -ge 10 ] + /sbin/zonename + ZONENAME=global + . /lib/svc/share/smf_include.sh + SMF_EXIT_OK=0 + SMF_EXIT_ERR_FATAL=95 + SMF_EXIT_ERR_CONFIG=96 + SMF_EXIT_MON_DEGRADE=97 + SMF_EXIT_MON_OFFLINE=98 + SMF_EXIT_ERR_NOSMF=99 + SMF_EXIT_ERR_PERM=100 + SMF_EXIT_TEMP_DISABLE=101 + SMF_EXIT_TEMP_TRANSIENT=102 + SMF_SYSVOL_FS=/system/volatile + __smf_exit_fmri='' + CONFIG_FILE=/etc/opt/csw/nrpe.cfg + [ ! -f /etc/opt/csw/nrpe.cfg ] /var/opt/csw/svc/method/svc-cswnrpe: line 44: syntax error at line 58: `(' unexpected stopping also produce an error: root@delphi:/home/admin# sh -x /var/opt/csw/svc/method/svc-cswnrpe stop + BINDIR=/opt/csw/bin + BINFILE=/opt/csw/bin/nrpe + RUNFLAG=1 + uname -r + awk -F. '{print $2}' + SOLREL=11 + [ 11 -ge 10 ] + /sbin/zonename + ZONENAME=global + . /lib/svc/share/smf_include.sh + SMF_EXIT_OK=0 + SMF_EXIT_ERR_FATAL=95 + SMF_EXIT_ERR_CONFIG=96 + SMF_EXIT_MON_DEGRADE=97 + SMF_EXIT_MON_OFFLINE=98 + SMF_EXIT_ERR_NOSMF=99 + SMF_EXIT_ERR_PERM=100 + SMF_EXIT_TEMP_DISABLE=101 + SMF_EXIT_TEMP_TRANSIENT=102 + SMF_SYSVOL_FS=/system/volatile + __smf_exit_fmri='' + CONFIG_FILE=/etc/opt/csw/nrpe.cfg + [ ! -f /etc/opt/csw/nrpe.cfg ] + kill -s STOP Usage: kill [-l] [-n signum] [-s signame] job ... Or:job ... killjob ... [job ... optionsjob ... ] -l [arg ...] + exit 0 |
||||||
Additional Information |
Solaris 11.1 Sparc Name: entire Summary: entire incorporation including Support Repository Update (Oracle Solaris 11.1.8.4.0). Description: This package constrains system package versions to the same build. WARNING: Proper system update and correct package selection depend on the presence of this incorporation. Removing this package will result in an unsupported system. For more information see https://support.oracle.com/CSP/main/article [^] ?cmd=show&type=NOT&doctype=REFERENCE&id=1501435.1. Category: Meta Packages/Incorporations State: Installed Publisher: solaris Version: 0.5.11 (Oracle Solaris 11.1.8.4.0) Build Release: 5.11 Branch: 0.175.1.8.0.4.0 Packaging Date: 31. Mai 2013 20:34:15 Uhr Size: 5.46 kB FMRI: solaris/entire@0.5.11,5.11-0.175.1.8.0.4.0:20130531T203415Z">pkg://solaris/entire@0.5.11,5.11-0.175.1.8.0.4.0:20130531T203415Z [solaris/entire@0.5.11,5.11-0.175.1.8.0.4.0:20130531T203415Z" target="_blank">^] |
||||||
Tags | No tags attached. | ||||||
Attached Files |
svc-cswnrpe [^] (2,696 bytes) 2014-04-23 22:21 cswnrpe [^] (2,387 bytes) 2014-04-24 06:33 cswnrpe2 [^] (2,397 bytes) 2014-04-24 07:03 |
||||||
|
Notes | |
(0010474) cgrzemba (developer) 2013-07-05 13:46 |
it works, if I rename the function stop in stopnrpe e.g. |
(0010551) cgrzemba (developer) 2013-08-26 12:15 |
The background of the problem described here: http://www.opencsw.org/community/questions/274/annoying-ksh-builtin-aliases-why-service-stop-not-work [^] |
(0010807) ccope (reporter) 2014-04-23 22:19 |
This is broken for me on Solaris 11.1 x86 as well. The solution is to remove the space between the function names and the () in their definitions: start() instead of start () |
(0010810) ccope (reporter) 2014-04-24 07:03 |
Whoops, the svc-cswnrpe file I uploaded had a typo in it. the cswnrpe file fixes that typo. I then discovered the stop function is also broken because the function name collides with a built-in shell function. the cswnrpe2 file renames that. |
(0010814) raos (developer) 2014-05-01 10:34 |
Adjusted cswnrpe start script in r23530 to first call 'unalias -a' before doing anything else. This will remove the 'stop' alias. Package uploaded to unstable catalog as nrpe-2.15,REV=2014.05.01. |
Copyright © 2000 - 2008 Mantis Group |