WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Recent Posts

Pages: 1 2 3 [4] 5 6 ... 10
31
TCE Q&A Forum / Re: lldpd not available for 16.x
« Last post by orneh24 on August 25, 2025, 11:07:25 PM »
Hey Rich,

..Please check if I finally got it right..
.. You did  :)

Code: [Select]
root@box:/home/tc# ps -C lldpd
  PID TTY          TIME CMD
 1639 ?        00:00:00 lldpd
 1641 ?        00:00:00 lldpd
root@box:/home/tc# /usr/local/etc/init.d/lldpd status

lldpd is running.

root@box:/home/tc# /usr/local/etc/init.d/lldpd restart
root@box:/home/tc#
root@box:/home/tc# /usr/local/etc/init.d/lldpd status

lldpd is running.

root@box:/home/tc# ps -C lldpd
  PID TTY          TIME CMD
 1747 ?        00:00:00 lldpd
 1749 ?        00:00:00 lldpd
root@box:/home/tc#

    [Edit]: Replaced quote tags with code tags.  Rich
32
TCE Q&A Forum / Re: lldpd not available for 16.x
« Last post by Rich on August 25, 2025, 09:03:55 PM »
Hi orneh24
OK, I installed lldpd on one of my machines and tracked down the problem.
When  start-stop-daemon  stops a process, it sends it a terminate signal and
then returns control to whatever called it. Meanwhile, the process still needs
to receive that signal and act upon it. So we had a race condition. I added a
loop that will wait up to 3 seconds for the process to terminate. On my machine
the delay loop dropped out after 0.6 seconds:
Code: [Select]
#!/bin/sh

if [ `/usr/bin/id -u` -ne 0 ]
then
echo -e "\nNeed to run as root or using sudo.\n"
exit 1
fi

NAME="lldpd"
DAEMON="/usr/local/sbin/$NAME"
DAEMON_ARGS=""

RUNNING=$(ps aux | grep -v "grep" | grep "$DAEMON")

start()
{
[ -n "$RUNNING" ] && echo -e "\n$NAME is already running.\n" && exit 2
start-stop-daemon -S -x "$DAEMON" -- "$DAEMON_ARGS"
}

stop()
{
start-stop-daemon -q -K -x "$DAEMON" 2>/dev/null
for DELAY in $(seq 1 30)
do
RUNNING=$(ps aux | grep -v "grep" | grep "$DAEMON")
[ -z "$RUNNING" ] && break
done
[ -n "$RUNNING" ] && echo -e "\n$NAME was not stopped.\n" && exit 3
rm -rf /var/run/"$NAME"*
}



status()
{
[ -n "$RUNNING" ] && echo -e "\n$NAME is running.\n" && exit 0
echo -e "\n$NAME is not running.\n"
exit 1
}

case $1 in
start) start
;;
stop) stop
;;
status) status
;;
restart) stop; start
;;
*) echo -e "\n$0 [start|stop|restart|status]\n"
;;
esac

Please check if I finally got it right.
33
TCE Q&A Forum / Re: lldpd not available for 16.x
« Last post by orneh24 on August 25, 2025, 06:29:22 PM »
Testing with the updated script;

When daemon is currently running, and restart is initiated:
Code: [Select]
root@box:/# ./usr/local/etc/init.d/lldpd status

lldpd is running.

root@box:/# ./usr/local/etc/init.d/lldpd restart
stopped /usr/local/sbin/lldpd (pid 1791 1789)

lldpd was not stopped.

root@box:/# ps -C lldpd
  PID TTY          TIME CMD
root@box:/#

So it looks like the variable is still not updated correctly.

If the daemon is currently stopped, and restart is initiated:
Code: [Select]
root@box:/# ./usr/local/etc/init.d/lldpd status

lldpd is not running.

root@box:/# ./usr/local/etc/init.d/lldpd restart
no /usr/local/sbin/lldpd found; none killed
root@box:/# ./usr/local/etc/init.d/lldpd status

lldpd is running.

root@box:/# ps -C lldpd
  PID TTY          TIME CMD
 1853 ?        00:00:00 lldpd
 1855 ?        00:00:00 lldpd
root@box:/#
34
TCE Talk / Re: any virtual machinery?
« Last post by LubielTheStoopid on August 25, 2025, 09:19:23 AM »
im very slightly used to qemu
35
TCE Talk / Re: any virtual machinery?
« Last post by Rich on August 25, 2025, 08:20:19 AM »
Hi Vaguiner
You need to either:
Code: [Select]
sudo modprobe kvm-amdfor an AMD CPU.

Or:
Code: [Select]
sudo modprobe kvm-intelfor an Intel CPU.

If you then run:
Code: [Select]
lsmod | grep kvmyou should see the module you loaded and the kvm module.
36
TCE Talk / Re: any virtual machinery?
« Last post by Vaguiner on August 25, 2025, 07:53:51 AM »
You usually have to manually load the appropriate kvm module from the kvm-KERNEL extension, did you try that?
Yes, I did. I ran it with -enable-kvm and so on. The slowness is strange. Maybe someday I'll look into it.

I've no plans to build the massively bloated qt6, so please feel free..
So just wait for a real need.
37
TCE Talk / Re: any virtual machinery?
« Last post by Juanito on August 25, 2025, 04:02:51 AM »
Currently Virtualbox depends on qt6. Maybe it's time to start working on qt6 tcz?

I've no plans to build the massively bloated qt6, so please feel free..
38
TCE Talk / Re: any virtual machinery?
« Last post by Juanito on August 25, 2025, 04:00:25 AM »
You usually have to manually load the appropriate kvm module from the kvm-KERNEL extension, did you try that?
39
TCE Talk / Re: any virtual machinery?
« Last post by Vaguiner on August 25, 2025, 02:00:20 AM »
I discovered that VirtualBox does not allow the distribution of binaries. I should have suspected this, since there are no binaries in any Linux distribution, only on the official website.

The best we could get would be a build script, but, honestly, I've lost interest (although it's very worthwhile, since VirtualBox is clearly infinitely superior to qemu in terms of performance (Maybe I'm doing something wrong, because everywhere on the internet it says that qemu is faster because of KVM, although I can't see that at all.))
40
TCE Talk / Re: any virtual machinery?
« Last post by Vaguiner on August 25, 2025, 12:48:08 AM »
Everything is working perfectly.

However, the complete package would be unnecessarily large and redundant, like brave-browser, ungoogled-chromium and others. Perhaps it would be better to reconsider compiling the source code?


Quote from: Wayne Sallee link=https://www.linuxquestions.org/questions/linux-from-scratch-13/compiling-virtualbox-from-source-documented-4175590802/#post5614142 date=10-05-2016, 06:45 AM
The idea of needing 32-bit dependencies has prevented many people from compiling VirtualBox.
...
Don't let the misconception of needing 32-bit prevent you from compiling VirtualBox. The second list of dependencies is only for compiling the guest-additions iso. That's it, and you don't need to compile that iso, you can easily download that little thing.



Anyway. Currently Virtualbox depends on qt6. Maybe it's time to start working on qt6 tcz?
Pages: 1 2 3 [4] 5 6 ... 10