74 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
86
views
What is the 'right' way to replace /sbin/init or preempt it on an image built with Yocto (petalinux)
I have a Yocto (petalinux) project that builds the artifacts for an embedded system. This system gets its rootfs as an overlay from one of two partitions, depending on boot conditions. To accomplish ...
1
vote
1
answer
135
views
LSB 5 forbids having SHT_DYNSYM and SHT_SYMTAB sections both at the same time?
I'm reading up on ELF files from both System V ABI and Linux Standard Base specs. In regard to symbol table sections System V says
Currently, an object file may have only one section of each type, ...
1
vote
2
answers
593
views
install from yocto recipe not able to create init.d folder
In yocto tpm2 recipe the following recipe is not workin fine:
install -d "${D}${sysconfdir}/init.d"
It's not able to create a folder named init.d. If I change folder name to init_d it is ...
0
votes
0
answers
410
views
How to invoke an initscript after network connection?
I have a initscript which I would like to execute only after network connection establishment. Becasue the init script will invoke a curl call. I beleive this is rather straightforward with systemd ...
-1
votes
1
answer
2k
views
Create a SysV Init script for Prometheus node exporter in old linux system (RHL6)
I have a server machine that has RHL6 (Red Hat Linux 6) and is based on SysV initialization (does not have systemd package), and I want to make my prometheus node exporter collect metrics from this ...
0
votes
1
answer
238
views
"service xxx start" (ONLY the "start") not working on Redhat
We have been using an open-source OCSP responder (OpenCA OCSP Responder), and I am trying to get it working on RHEL 7. The project is quite old, and I don't think is being maintained actively anymore....
0
votes
1
answer
236
views
Bash doesn't interpet \x20 as a space in directory path
I am trying to convert a systemd service to sysvinit, while trying to run the following service named mullvad-vpn;
#!/bin/sh
.....
. /lib/lsb/init-functions
prog=mullvad-daemon
PIDFILE=/var/run/$prog....
1
vote
1
answer
1k
views
How can I force gcc/g++ to create SYSV exectables instead of GNU/Linux?
I'm trying to build executables (both programs and shared objects) on a relatively modern Linux distro (A) and wanting to run those on a fairly old one (B).
A can build SYSV but sometimes it falls ...
2
votes
1
answer
404
views
how does systemd replace populate-volatiles.sh?
In sysvinit I would have an initscript, populate-volatiles.sh, that reads a volatiles file and creates the volatiles. What performs that function in systemd? Is there a systemd unit that does this? ...
2
votes
1
answer
587
views
C Shared memory existing flag?
I have seen that question on SO already but it wasn't clear to me the following case:
A shm has been created. So if I call in my case:
int shmid = shmget(key, sizeof(struct messageQueue), IPC_CREAT | ...
1
vote
1
answer
4k
views
Is there a way to increase the maximum amount of messages that can be contained in a SysV message queue?
I just switched from POSIX to SysV because the limit is much higher on SysV (1024 vs 10). But I still need an higher limit. The limit should be changed at runtime, because it depends on the data the ...
-1
votes
1
answer
686
views
linux ipc. Why is msgrcv always blocking?
client readline write to shared memory.and send a msg to server.
server get msg and read from shared memrory.
But the server cannot output correctly,
The server did not output anything,I do not know ...
2
votes
1
answer
1k
views
Convert binutils `size` output from "sysv" format (`size --format=sysv my_executable`) to "berkeley" format (`size --format=berkeley my_executable`)
I'd like to know how to get this berkeley format output:
$ size --format=berkeley /bin/ls
text data bss dec hex filename
124042 4728 4832 133602 209e2 /bin/ls
From this ...
6
votes
1
answer
1k
views
Check if Numpy Array is Stored in Shared Memory
In Python 3.8+, is it possible to check whether a numpy array is being stored in shared memory?
In the following example, a numpy array sharedArr was created using the buffer of a multiprocessing....
2
votes
0
answers
1k
views
PHP: extension sysvmsg
i use on my one personaly project simple queue implemented by msg function. This a specific function msg_receive which is used to wait for a message to come to the queue. Once in a while, this wait ...