Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with cbsdd status pid #417

Closed
spagu opened this issue Jun 26, 2019 · 2 comments
Assignees

Comments

@spagu
Copy link
Contributor

@spagu spagu commented Jun 26, 2019

Mandatory info for bug reports:

#service cbsdd status
cbsdd is not running.
#ps -aux | grep cbsd
root  88131   0.0  0.0 15120  5512  2  S    21:00       0:00.02 /usr/local/bin/cbsd /usr/local/cbsd/tools/cbsdd

My setting of workdir in rc.conf:

cbsd_workdir="/usr/jails/cbsd"

Inside a /usr/local/etc/rc.d/cbsdd path to the pid is dafined as pidfile="/var/run/$name.pid" but pid is created here: /usr/jails/cbsd/var/run/cbsdd.pid

Possible fix:

# diff -u cbsdd.org cbsdd
--- cbsdd.org   2019-06-23 01:23:21.000000000 +0000
+++ cbsdd       2019-06-26 21:17:46.309212000 +0000
@@ -53,7 +53,7 @@
 extra_commands="restart"

 command="${toolsdir}/cbsdd"
-pidfile="/var/run/$name.pid"
+pidfile="${cbsd_workdir}/var/run/$name.pid"
 command_args="&"

 cbsdd_prestart() {

FreeBSD version ( uname -a ):
FreeBSD 12.0-RELEASE-p4 FreeBSD 12.0-RELEASE-p4 GENERIC amd64 ( latest )

CBSD version ( cbsd version ):
CBSD version: 12.0.12

@spagu

This comment has been minimized.

Copy link
Contributor Author

@spagu spagu commented Jun 26, 2019

@olevole olevole self-assigned this Jun 27, 2019
@olevole

This comment has been minimized.

Copy link
Collaborator

@olevole olevole commented Jun 27, 2019

Thx!

@olevole olevole closed this Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.