Skip to content

Commit

Permalink
Change the hybrid ABI path to local64 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
elisehaldane authored Feb 20, 2024
1 parent 25f4a6c commit d5b0834
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
38 changes: 19 additions & 19 deletions etc/rc.d/pot
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

. /etc/rc.subr

PATH=$PATH:/usr/local/bin
PATH=$PATH:/usr/local64/bin
name="pot"
desc="Pot containers"
procname="pot"
Expand All @@ -16,52 +16,52 @@ start_cmd="pot_start"
stop_cmd="pot_stop"
restart_cmd="pot_restart"
status_cmd="pot_status"
start_precmd="pot_deprecated_start"
stop_postcmd="pot_deprecated_stop"
# start_precmd="pot_deprecated_start"
# stop_postcmd="pot_deprecated_stop"

load_rc_config $name
: ${pot_enable:=NO}

pot_start()
{
local _pname _dyn_pot_list _start
_dyn_pot_list=$(/usr/local/bin/pot ls -q)
_dyn_pot_list=$(/usr/local64/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
if [ "$( /usr/local/bin/pot get-attr -p "$_pname" -A start-at-boot -q )" = "YES" ]; then
/usr/local/bin/pot start "$_pname"
if [ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A start-at-boot -q )" = "YES" ]; then
/usr/local64/bin/pot start "$_pname"
fi
done
}

pot_stop()
{
local _pname _dyn_pot_list _start
_dyn_pot_list=$(/usr/local/bin/pot ls -q)
_dyn_pot_list=$(/usr/local64/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
if [ "$( /usr/local/bin/pot get-attr -p "$_pname" -A start-at-boot -q )" = "YES" ]; then
/usr/local/bin/pot stop "$_pname"
if [ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A start-at-boot -q )" = "YES" ]; then
/usr/local64/bin/pot stop "$_pname"
fi
done
}

pot_early_start()
{
local _pname _dyn_pot_list _start
_dyn_pot_list=$(/usr/local/bin/pot ls -q)
_dyn_pot_list=$(/usr/local64/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
if [ "$( /usr/local/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local/bin/pot start "$_pname"
if [ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local64/bin/pot start "$_pname"
fi
done
}

pot_early_stop()
{
local _pname _dyn_pot_list _start
_dyn_pot_list=$(/usr/local/bin/pot ls -q)
_dyn_pot_list=$(/usr/local64/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
if [ "$( /usr/local/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local/bin/pot stop "$_pname"
if [ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local64/bin/pot stop "$_pname"
fi
done
}
Expand All @@ -78,11 +78,11 @@ pot_restart()
pot_status()
{
local _pname _dyn_pot_list
_dyn_pot_list=$(/usr/local/bin/pot ls -q)
_dyn_pot_list=$(/usr/local64/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
if [ "$( /usr/local/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ] ||
[ "$( /usr/local/bin/pot get-attr -p "$_pname" -A start-at-boot -q )" = "YES" ]; then
if /usr/local/bin/pot info -qrp "$_pname" ; then
if [ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ] ||
[ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A start-at-boot -q )" = "YES" ]; then
if /usr/local64/bin/pot info -qrp "$_pname" ; then
echo "pot $_pname is up and running"
else
echo "pot $_pname is not running"
Expand Down
14 changes: 7 additions & 7 deletions etc/rc.d/pot_early
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

. /etc/rc.subr

PATH=$PATH:/usr/local/bin
PATH=$PATH:/usr/local64/bin
name="pot_early"
desc="Pot containers - early start"
procname="pot"
Expand All @@ -21,21 +21,21 @@ load_rc_config $name
pot_early_start()
{
local _pname _dyn_pot_list _start
_dyn_pot_list=$(/usr/local/bin/pot ls -q)
_dyn_pot_list=$(/usr/local64/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
if [ "$( /usr/local/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local/bin/pot start "$_pname"
if [ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local64/bin/pot start "$_pname"
fi
done
}

pot_early_stop()
{
local _pname _dyn_pot_list _start
_dyn_pot_list=$(/usr/local/bin/pot ls -q)
_dyn_pot_list=$(/usr/local64/bin/pot ls -q)
for _pname in $_dyn_pot_list ; do
if [ "$( /usr/local/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local/bin/pot stop "$_pname"
if [ "$( /usr/local64/bin/pot get-attr -p "$_pname" -A early-start-at-boot -q )" = "YES" ]; then
/usr/local64/bin/pot stop "$_pname"
fi
done
}
Expand Down

0 comments on commit d5b0834

Please sign in to comment.