Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Sep 2014 00:55:57 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193728] New: [patch] net/serviio - add rc script exit codes for service monitoring daemons
Message-ID:  <bug-193728-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193728

            Bug ID: 193728
           Summary: [patch] net/serviio - add rc script exit codes for
                    service monitoring daemons
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: netchild@FreeBSD.org
          Reporter: jason.unovitch@gmail.com
          Assignee: netchild@FreeBSD.org
             Flags: maintainer-feedback?(netchild@FreeBSD.org)

Created attachment 147420
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=147420&action=edit
patch adding exit codes to the serviio rc script status function

Serviio's rc script currently always exits with a 0 from the echo lines in its
status function.  This confuses service monitoring daemons as it looks like
Serviio is actually running.  A patch that has explicit exit codes is attached
that should improve the behavior with anything that expects a 0 as meaning the
service is working.


##### BEFORE
root@test-serviio:/usr/local/etc/rc.d # service serviio onestatus
serviio is not running
root@test-serviio:/usr/local/etc/rc.d # echo $?
0
root@test-serviio:/usr/local/etc/rc.d # service serviio onestatus
serviio is running as pid 40239
root@test-serviio:/usr/local/etc/rc.d # echo $?
0

##### AFTER
root@test-serviio:/usr/local/etc/rc.d # service serviio onestatus
serviio is running as pid 40743
root@test-serviio:/usr/local/etc/rc.d # echo $?
0
root@test-serviio:/usr/local/etc/rc.d # service serviio onestatus
serviio is not running
root@test-serviio:/usr/local/etc/rc.d # echo $?
1

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer netchild@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193728-13>