Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2015 07:43:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 202707] sysutils/runit: runsv searches in the wrong directory
Message-ID:  <bug-202707-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 202707
           Summary: sysutils/runit: runsv searches in the wrong directory
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: crees@FreeBSD.org
          Reporter: sean@chittenden.org
             Flags: maintainer-feedback?(crees@FreeBSD.org)
          Assignee: crees@FreeBSD.org

Created attachment 160433
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=160433&action=edit
runit /service to /var/service fixup

The sv(8) utility is hard coded to use /service as its startup directory. 
FreeBSD ports change this value to be /var/service.  The sv(8) utility should
be patched to search in /var/service for services.  Previously, sv(8) required
a full path to the service directory that you wished to operate on.  For
instance:

sv stat /var/service/openntpd

But it should be possible to run:

sv stat openntpd

and have sv(8) do the right thing.

Note:

The other way to do this would be to chase runit and start using /service,
however I do not like its new default value:

1.9.0
Mon, 05 May 2008 22:00:13 +0000
  * doc/upgrade.html: typo.
  * sv.c: service name is also relative to the current directory if it
    ends with a slash.
  * change default directory for services from /var/service/ to /service/.
  * runsv.c: create temporary new status files for log/supervise/ actually
    in log/supervise/.
  * doc/benefits.html: minor additions.

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