Questions tagged [sysv]

For Unix-related questions specific to System V IPC, System V init, SVID, etc.

System V is a branch of commercal Unix operating systems, with SVR4 (System V Release 4) being the most succesful and most widely ported version. Modern System V systems include Oracle Solaris, IBM AIX, HP-UX, and others.

System V IPC primitives (message queue, semaphore, shared memory) had been standardized in POSIX and Single Unix Specification.

73 questions
2
votes
2 answers

System V Message Queue - Timed receive

Im using System V Message Queue, which does not have a "timed receive" function, like POSIX MQ. But now i need it (this timed receive func.). One can ask: "so why dont you use POSIX instead of Sys V?". Because in my benchmarks SysV MQ was +- 20%…
Leonardo Alt
  • 325
  • 3
  • 9
2
votes
2 answers

Is there any possible way to change a memory location to a shared memory in C?

In c you can do shmid = shmget(SHMEM_KEY, sizeof(int*) * n , SHEMEM_MODE | IPC_CREAT); int* shmem = shmat(shmid, NULL, 0); to assign first given free memory space as a shared memory. Is there any way to assigne current memory space as a shared…
Anatoli
  • 922
  • 2
  • 11
  • 25
2
votes
0 answers

Node.JS and System V Queues / sysv

I've files written in PHP that are using SYSV functions of Linux Systems. The functions that are used in the code being: msg_send, msg_receive and msg_get_queue. My team wants to have the same functionality written in Node.JS. The closest I was at:…
Sanket Tarun Shah
  • 637
  • 10
  • 28
2
votes
2 answers

I have a SysV init script on Fedora 18. How can I make it start after the network is ready?

I have a SysV init script on Fedora 18. Fedora 18 uses systemd (and apparently, there is no way to switch back to SysV). My script requires the network to be ready. Currently, at the time the script runs, the network is not ready. How can I make…
Matt Fichman
  • 5,458
  • 4
  • 39
  • 59
2
votes
1 answer

Correctly removing SYS V semaphore used by several processes

I've got a project in which I have to use SYS V semaphores. I've got several processes which share a semaphore (using the same key) and initialize it with this code: bool semaphore_init(semaphore_id_t* sem, int sem_value, key_t key) { /* Try to…
1
vote
1 answer

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 able to create the folder. It appears strange to me becuase…
1
vote
1 answer

Semaphore synchronization on value 0

Using SysV semaphores in a UNIX OS it is possible to implement an algorithm in which a process waits until the value of a semaphore reaches the value 0 (see man semop for details). Now, everybody seems to say that it is better to use other…
Raffo
  • 1,642
  • 6
  • 24
  • 41
1
vote
1 answer

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? What is it and how do I configure it?
bef.tgz
  • 87
  • 1
  • 10
1
vote
1 answer

I kill process "A" in XV6 , what happens to child processes of "A"

On a normal day , when a process is killed , all its child processes must be attached to 'init' process (Great Grand-Daddy of all processes). Strangely , the XV6 doesn't seem to do so. Below is the code of 'kill' function in proc.c file in XV6 int…
Daksh
  • 31
  • 1
  • 7
1
vote
0 answers

Using shared memory to implement server locally

Shared memory is (possibly) the fastest IPC method available. Is there any well recognized design pattern for implementing a local client/server communication via shared memory? More specifically, a request/response cycle. The scenario is as…
Daniel Lovasko
  • 471
  • 2
  • 10
1
vote
1 answer

Yocto: INITSCRIPT_PARAMS not works as expected

I'm using yocto Krogoth(2.1) and this not works in my startup_1.0.bb: INITSCRIPT_PARAMS = "start 98 S ." startup.sh was copied into /etc/init.d but not linked to /etc/rcS.d/S98startup.sh after bitbake core-image-minimal I googled solutions and even…
Keelung
  • 349
  • 5
  • 9
1
vote
2 answers

Firebird 2.5 Database Server on FreeBSD 11.2

I install a Firebird database server (ver. 2.5) according to the instructions on https://www.howtoforge.com/the-perfect-database-server-firebird-2.5-and-freebsd-8.1 and I get this message "Please do not build firebird as 'root' because this may…
1
vote
0 answers

How to implement process-wise mutexes and condition variables

I have two processes running. One is the mainserver and the other is proxy server. They both communicate through a shared memory. Proxy server writes name of the file and mainserver reads it. Then main server writes the content of that file to be…
cranberry
  • 55
  • 7
1
vote
0 answers

Why `systemctl list-unit-files` command output does not contain logstash

I Installed ELK (Elasticsearch, Logstash and Kibana) with YUM onto our centos based system and set them as start at boot time. Then When I tried command systemctl list-unit-files, the output only contains Kibana and Elasticsearch without Logstash at…
Rui
  • 3,454
  • 6
  • 37
  • 70
1
vote
0 answers

CentOS IPC msg queue filling up with messages from PHP application

I have a long-running PHP application that spawns multiple child processes to run tasks on a CentOS VM, and it uses the SysV IPC message queue (via msg_get_queue(), etc) for sending events to the parent process. The problem is that even though the…