Questions tagged [sysv]

11 questions
2
votes
1 answer

Why “systemctl stop service”, instead of “systemctl service stop”?

Back in the days of “service servicename stop” you could then press up arrow to get last command, and your cursor is right on the “stop”, so you could press backspace 4 times and type “start”... now I have to left arrow through the service name to…
MicDunDee
  • 23
  • 4
2
votes
0 answers

Create dependency in SysV file to a systemd service

I am running Ubuntu 16.04.3. I have configured that a docker container sends email using the host's smtp (postfix). In order for this to work, I have to add the docker network to postfix's main.cf file. Problem is that postfix starts before docker…
ColdAir
  • 21
  • 2
2
votes
2 answers

What is the default path that systemd uses to locate locate System V scripts?

Is /etc/init.d the default search path that the systemd generator uses to convert native SysV script to unit files, and falls back to /etc/rc?.d or vice versa? From this answer by @JdeBP: This program is a generator, a type of ancillary utility…
direprobs
  • 944
  • 14
  • 29
1
vote
1 answer

Equivalent of /dev/mqueue to enumerate SysV message queues

Linux supports two kinds of message queues: POSIX (i.e., those created by mq_open), and System V (i.e., those created by msgget). For POSIX message queues, mq_overview(7) documents that you can enumerate them via the mqueue virtual filesystem,…
0
votes
1 answer

After upgrading to Debian12 and upgrading packages apt shows: The following packages have been kept back: sysv-rc-conf

After upgrading Debian11/KDE to Debian12, restarting and running sudo apt-get upgrade I get this: The following packages have been kept back: sysv-rc-conf. I can't install it because then it asks to remove many essential packages like…
mYnDstrEAm
  • 4,008
  • 13
  • 49
  • 108
0
votes
1 answer

Stop not called for init rc.d service

I have a very simple SysVinit service in /etc/rc.d: #!/bin/bash PIDFILE="/var/run/test.pid" status() { if [ -f "$PIDFILE" ]; then echo 'Service running' return 1 fi return 0 } start() { if [ -f "$PIDFILE" ] && kill -0 "$(cat…
Maestro
  • 179
  • 7
0
votes
0 answers

Systemd & SysV init scripts

Good day, I have spent days reviewing a problem related to the operation of the services in Systemd and the SysV scripts, but I have not obtained a resolution to my question in the documentation. The main issue goes like this: Right now we have 20…
0
votes
0 answers

What was runlevel 4 used for with SysV init?

I'm reading about SysV init and I see there are levels 0-6. I understand that level 4 could be defined by the OS operator for special purposes, but I'm having trouble thinking of any examples. Has anyone seen runlevel 4 used in the wild? What was…
Philip Kirkbride
  • 9,816
  • 25
  • 95
  • 167
0
votes
1 answer

Why when I run `$ ipcs` are all shared memory segment keys "0x00000000"?

So when I run $ ipcs, the shared memory segment section returns a variety of results: ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000000 524288 jvn 600 …
John Von Neumann
  • 533
  • 1
  • 5
  • 11
0
votes
1 answer

How to determine boot time in SysV?

In systemd-based distros there is a tool run via systemd-analyze which allows the user to determine boot time [kernel and userspace, the time it took for the system to boot up]. Is there a similar command which can be run for SysV?
C26
  • 155
  • 1
  • 1
  • 13
0
votes
1 answer

Init running in Debian 9.1

I have the /usr/lib/systemd and /etc/systemd directories, and systemd is running. But I also have the /etc/init/ directory, with several .conf configuration files, I thought this was a sign of Upstart. And I also thought Debian had moved to System…
Pierre B
  • 2,143
  • 6
  • 23
  • 38