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
1
vote
2 answers

Unable to change gpio value

Currently I'm trying to check the booting time of an Tixi board using systemd on a 2.6.39 linux kernel. To do so I created a service file that calls a bash script which sets and uses a gpio. The problem is that my systems is not allowing me to…
carocad
  • 455
  • 6
  • 12
1
vote
1 answer

SysV message queue number increase

I have a scenario where: 1: there is a reader process and a writer process, these processes are communicating through SysV message queue. 2:Writer process is faster than reader process, that is, writer process writes messages in the queue faster…
ind79ra
  • 149
  • 2
  • 13
0
votes
1 answer

In Linux, XSI/System-V IPC mechanisms are outdated?

Is the XSI/System V IPC is outdated since we have POSIX IPC mechanisms available in Linux? What kind of IPC (Sysv/Posix/other) is recommended for newer programs ?
Lunar Mushrooms
  • 8,358
  • 18
  • 66
  • 88
0
votes
0 answers

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 After=network-online.target. But, how can I do this…
Preeti
  • 535
  • 1
  • 6
  • 30
0
votes
0 answers

Cross compile boost library for Raspberry Pi 4 32-bit gives gnu/linux insted of sysv and doesn't work on pi

I have a raspberry pi board and I want to cross compile the boost to use date_time lib form Ubuntu 22.04 host. every time I try to compile and check the file type using file command it gives this libboost_date_time.so.1.66.0: ELF 32-bit LSB shared…
0
votes
1 answer

"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. Anyway, I was able to get it to work on RHEL 7…
user555303
  • 1,146
  • 3
  • 20
  • 44
0
votes
1 answer

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.pid DESC="Mullvad VPN daemon" start() { …
0
votes
1 answer

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 back to GNU/Linux, causing problems when running…
Emanuele
  • 1,408
  • 1
  • 15
  • 39
0
votes
1 answer

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 user chooses. Using POSIX, it was possible to…
Enrico
  • 84
  • 1
  • 9
0
votes
1 answer

Ruby background process STDOUT is empty

I'm having a weird issue with a start-up script which runs a Sinatra script using the shell's "daemon" function. The problem is that when I run the command at the command line, I get output to STDOUT. If I run the command at the command line exactly…
Jonathan
  • 405
  • 4
  • 9
0
votes
0 answers

Problem Running Message Queue on two terminals

I am trying to run two processes which are basically sending and receiving messages using message queue(SYS V). While I can run two process on same terminal tab by keeping my receiver in background ./receiver & and sender in the foreground. …
csavvy
  • 761
  • 4
  • 13
0
votes
1 answer

Using Environment Variables with SysV Centos6

I have a Spring Boot application that I installed as a service in SysV, so I created a Symbolic link in /etc/init.d/myapp to /home/myuser/app.jar. Then I start my application in this way: service app start…
Ronaldo Lanhellas
  • 2,975
  • 5
  • 46
  • 92
0
votes
0 answers

Use va_start in a sysv abi function on Win64?

I'm trying to implement a variadic function declared as sysv_abi, so I have to use va_start in this function, but didn't find a way. I compile the code on Win64, using vs2017, the compiler is clang-cl. The target is a x86_64 executable(PE file on…
Asuka
  • 71
  • 1
  • 4
0
votes
0 answers

Virtualenv libraries incorrectly linking in python script when run from init.d script, but not when running normally

Here's the lowdown. First, I'm using an EC2 instance with Amazon Linux (the original one, not Amazon Linux 2), limiting me to sysV instead of systemd. I've got a Flask app server running off CherryPy WSGI server with an Nginx reverse proxy in…
Imamadmad
  • 77
  • 1
  • 11
0
votes
1 answer

All sysv services come back with exit code 1 (service start / status / stop)

On an amzn linux server, after a cycle of install - cleanup - reinstall exercises, suddenly the system V service command didn't work any more (such as: service docker start; service sendmail status, service cron stop). It immediately exited with…
ynux
  • 1,280
  • 14
  • 21