Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 02 Nov 2024 19:09:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 282501] sysutils/kubo-go: Incorrect path and environment variables in rc.d script
Message-ID:  <bug-282501-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 282501
           Summary: sysutils/kubo-go: Incorrect path and environment
                    variables in rc.d script
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jhixson@FreeBSD.org
          Reporter: eemmaa@waifu.club
          Assignee: jhixson@FreeBSD.org
             Flags: maintainer-feedback?(jhixson@FreeBSD.org)

Component: Start up scripts
OS: stable/14

Steps to Reproduce:
```
service start kubo-go
```
- Actual results:
simply does not work, silently fails
- Expected results:
kubo/ipfs-go starting with the defined environment variables withing the st=
art
up script


# Additional Information
In the init script in /usr/local/etc/rc.d/kubo-go has incorrect paths and
environment variables.

KUBO_PATH by its self seems to not work, using IPFS_PATH as well works as
expected.=20

Additionally currently /usr/local/bin/kubo-go is used within the rc script,=
 but
kubo is installed in the path /usr/local/bin/kubo

Before change (not working)
```
command_args=3D"-S -m 3 -s ${kubo_syslog_priority} -l ${kubo_syslog_facilit=
y} -T
${kubo_syslog_tag} -p ${pidfile} /usr/bin/env KUBO_PATH=3D${kubo_path}
${kubo_env} /usr/local/bin/kubo-go daemon --init --init-profile=3Dserver
--migrate=3Dtrue ${kubo_args}"
procname=3D"/usr/local/bin/kubo-go"
```

After change (working)
```
command_args=3D"-S -m 3 -s ${kubo_syslog_priority} -l ${kubo_syslog_facilit=
y} -T
${kubo_syslog_tag} -p ${pidfile} /usr/bin/env IPFS_PATH=3D${kubo_path}
KUBO_PATH=3D${kubo_path} ${kubo_env} /usr/local/bin/kubo daemon --init
--init-profile=3Dserver --migrate=3Dtrue ${kubo_args}"
procname=3D"/usr/local/bin/kubo"
```

--=20
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-282501-7788>