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
0
votes
3 answers

Where do we really need a set of System v Semaphores?

Every time I read the description of semget: The semget() system call returns the semaphore set identifier associated with the argument key., I wonder where do we really need set of System V Semaphores. I always give the nsems parameter as 1…
Durin
  • 2,070
  • 5
  • 23
  • 37
0
votes
1 answer

execvp() - unsupported SysV option

I am trying to write a simple shell in C which takes in a command and uses a child process to execute that command. For example, if I input: ps -ael my child process should execute that command along with its arguments. I print out my commands…
0
votes
1 answer

my system V init script don't return

This is script content, located in /etc/init.d/myserviced: #!/lib/init/init-d-script DAEMON="/usr/local/bin/myprogram.py" NAME="myserviced" DESC="The description of my service" When I start the service (either by calling it directly or by calling…
jiandingzhe
  • 1,881
  • 15
  • 35
0
votes
2 answers

System V IPC msgrcv with timer Howto

We are using a System V message queue with the msgrcv function being called in blocking mode. We want to implement a timer on the blocking msgrcv function so that when the timer expires and we have not received a message, we can unblock msgrcv and…
rajesh
  • 21
  • 1
  • 4
0
votes
1 answer

How to install a service and lauch it during a cloud-init phase via AWS cloudformation user data bash script?

I needed to add a shutdown hooks on my EC2 instances to do some resource clean up stuff. Moreover, I would also be able to start and stop manually my instance for testing purpose and I wanted the startup and shutdown hooks to be triggered the same…
0
votes
1 answer

Building shared libc.so for System V ABI under GNU ABI

I need to build shared libc.so for System V ABI system under GNU ABI system from sources. I'm trying to build glibc2.16 if it is important. My gcc compiler was built with the default --hash-style option set to "sysv". Every application built with it…
AccumPlus
  • 161
  • 9
0
votes
1 answer

update-rc.d defaults setting up runlevels?

Reading update-rc.d manpage: update-rc.d requires dependency and runlevel information to be provided in the init.d script LSB comment header of all init.d scripts. Am i correct in interpreting below command as follows: update-rc.d foo[name] …
gaukhar
  • 182
  • 2
  • 14
0
votes
0 answers

Receiving SysV messages using fork()

I'm trying to receive a series of messages I sent with msgsnd in a series of fork()s. I can tell the messages sent ok, but receiving them has been a problem. Here's the problem part of the code, using three messages as an…
0
votes
1 answer

System V msg_send interrupted by SIGKILL

I have a multi-process application that works like so... There is a parent process. The parent process queries a database to find work, then forks children to process that work. The children communicate back to the parent via System V message queues…
ashgromnies
  • 3,266
  • 4
  • 27
  • 43
-1
votes
1 answer

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 machine. All I can find online is how to create a…
ali
  • 1
  • 2
-1
votes
1 answer

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 why. the man pages says that: If no message of the…
clay
  • 79
  • 7
-1
votes
1 answer

sysV init.d: what does the priority really mean?

The docs for chkconfig are a bit loose on what the priority number actually means, and the docs for init don't even mention priority on my machine. Say you have the following: /etc/rc.d/rc3.d/S01foo /etc/rc.d/rc3.d/S02bar Which one is run first? …
James M. Lay
  • 2,270
  • 25
  • 33
-2
votes
2 answers

rc.d script given a "start" argument by default?

My objective is to make a bash script service that creates a file when the runlevel is 5 and delete that file when the runlevel is 3. The problem that I got is when i got to runlevel 3 . I get : The current lvl is : 3 and number of arguments is : 1…
Tahero
  • 328
  • 4
  • 11
1 2 3 4
5