Questions tagged [sysvinit]
SysVinit is a set of programs and scripts that control the startup, running and shutdown of all other programs.
454
questions
0
votes
1
answer
14
views
Auto detect network interface card, network init.d
I have build my LFS linux that based in this book, it's working fine and network interface card is working. Even it's configuring IP automatically with using dhcpcd service.
According chapter 9 in ...
0
votes
1
answer
60
views
Why does this init.d script sometimes not run at shutdown?
I'm on Debian 10 Buster.
I can't figure out what's wrong with this init.d script? Sometimes it doesn't run at server shutdown.
My MySQL error_log fills up with "Status information" when the ...
0
votes
1
answer
54
views
Make init.d service wait for mount via systemd-logic
I have a systemd-based distribution (debian 10) with a legacy init.d-service (backuppc). As the backup is stored on an external drive, I'd like to ensure that the backup service does not run before ...
0
votes
2
answers
185
views
Reboot does not send "stop" to init.d scripts
I have a script that I want to execute before a machine is either shut down or rebooted but it's only triggered with the start parameter, never with the stop parameter and it's driving me crazy.
...
0
votes
1
answer
1k
views
How to enable/disable/start/stop services in sysVinit?
I'm using devuan distro with sysVinit as init system. Before i was in debian using systemd.
Like for making service for emacs server on boot, in systemd i used to make folder as
~/.config/systemd/user/...
0
votes
1
answer
255
views
Enable libvirt using sysvinit
I am trying to install qemu and KVM on my MX-Linux 21, however my system is booted with sysvinit. As all the articles regarding installing and setting KVM use systemctl, I cannot find one to enable ...
0
votes
0
answers
69
views
Yocto splash screen before rc5
I would like to show splash screen on yocto boot. Im'm using psplash for this purpose. But the difficalty I'm facing is that despite psplash is located in rcS.dgraphic only start to appear when ...
0
votes
0
answers
172
views
Use Docker on a systemd disabled VM
I am provided by a VM running Ubuntu 18.04.5 LTS which has systemd disabled.
I have root access on it.
I am trying to run docker on it which is installed but I get error Cannot connect to the Docker ...
0
votes
0
answers
281
views
Unable to start (SysV init) script with systemd service in RHEL 8.2
I'm facing an issue where ExecStart of a SysV init script is failing in RHEL 8.2. I don't have this issue in RHEL 7.9 with the exact same init script and service unit setup. Went through quite a bit ...
0
votes
2
answers
89
views
Cannot connect to postgresql database from init.d script (Debian)
A script that runs just fine normally fails when put into an /etc/init.d/ script (consolenew), to activate at bootup.
Specifically, it cannot open the PostgreSQL database, giving the error: could not ...
0
votes
1
answer
189
views
Change init program location in linux
In the linux kernel I found the following lines in the main.c file:
if (!try_to_run_init_process("/sbin/init") ||
!try_to_run_init_process("/etc/init") ||
!...
0
votes
0
answers
40
views
SysVinit service runs differently from the script itself
I'm using Linux Deploy on Android and trying to create a service for SysVinit. The distribution I use is Debian buster. I wrote the following script. The problem is: when running it as a script itself,...
0
votes
1
answer
339
views
Remove folder at shutdown or reboot
I have a folder /mnt/automounts which is used to automount usb drives in (which is working.). There is one scenario that still causes an issue. When a usb drive is plugged in, then the system is shut ...
7
votes
2
answers
1k
views
Repairing a failed Debian upgrade
I was attempting to upgrade from debian 9 to 10 but the installation failed when attempting to install systemd-sysv_241-7~deb10u6_amd64.deb. I get the following error:
My attempts to run apt --fix-...
0
votes
1
answer
134
views
CentOS: Add init script to all default runlevels
How can I add specific init script exists in /etc/init.d/init_script to all default runlevels?
In debian based distros, this can be achieved by
sudo update-rc.d init_script defaults
But in CentOS, ...
2
votes
1
answer
331
views
What's the point of a daemon detaching itself from controlling terminal if the terminal can never be closed?
All sources I've read about writing a daemon say that daemons should detach themselves from controlling terminal so that if the terminal is closed, the daemon won't get SIGHUP.
But daemons are always ...
1
vote
1
answer
2k
views
Nessus 8.13 Install on Kali or Ubuntu: /etc/init.d/nessusd: command not found
I really need some help with this issue I am having. I am trying to install Nessus scanner on either my Kali 2020.2 or Ubuntu 20.04 LTS VMs on Virtual Box. Granted I have tried this install on both ...
0
votes
0
answers
58
views
How to handle this delay on boot time?
friends! Happy New 2021 Year here!
I use Devuan with SysVinit, because I want to speedup my system and get unnecessary non-free stuff away as possible, but also I need Debian-like distribution cause ...
0
votes
0
answers
22
views
How to make sure OpenVPN stays connected? [duplicate]
I followed some instructions from here to connect to a VPN on startup, however, every few months something goes awry and I find myself not connected to the VPN.
How can I kill the internet if it can't ...
0
votes
1
answer
100
views
Ubuntu "service" command stuck, can't reload services
Using Ubuntu 16.04.6 LTS, it is not possible to call the service command to modify the status of any /etc/init/ services.
The command starts but is stuck in execution.
The services themselves are ...
-2
votes
2
answers
31
views
Is Removing vsftpd & ssh from init.d safe?
Everytime my system boot up, the ssh and ftp services are automatically start, is removing them from the init.d (init process) will solve my problem ? And is it safe ?
2
votes
2
answers
4k
views
systemd -- su: Permission denied, in /etc/init.d scripts
We are migrating from RHEL6 to RHEL8
and I would like to retain the old /etc/init.d scripts,
since we have a ton of applications that would otherwise
need be rewritten and tested.
For many init-...
1
vote
0
answers
393
views
Initializing framebuffer device without udev
I am trying to reduce boot time in a Raspberry Pi 4 using Yocto Linux. The system uses SysV init.
There is psplash that uses framebuffer, and Qt application that uses DRM/eglfs, displayed ...
2
votes
1
answer
2k
views
what is apache-htcacheclean for, and why is it in /etc/init.d/
I have installed apache2 package in Debian. In addition to the startup script /etc/init.d/apache2, there is also another one:
/etc/init.d/apache-htcacheclean
What is the purpose of this script? The ...
0
votes
1
answer
1k
views
How to start a script on boot in Debian?
I have a script inside of /etc/init.d/wifi and I want to start it on boot. I first gave it permissions by running sudo chmod 755 wifi, then I ran sudo update-rc.d wifi defaults. Finally, I enabled it ...
0
votes
0
answers
372
views
Unable to move shell schript to init.d, is in read only file-system on an embedded linux
When I do
cp run-rfid-script.sh /init.d
I get this error message
cp: can't create '/init.d': Read-only file system
How can I overcome this problem?
Other info on what I am doing
I have a shell ...
1
vote
0
answers
22
views
What's causing initctl stop to fail?
I have an upstart process which terminates all child processes during post-stop:
post-stop exec killall my-process & exec sleep 10
This works as expected, however I'm unsure of the following two ...
1
vote
1
answer
185
views
Convert SysV init run level S to Systemd *.target (Debian)
I am converting a SysV init style file to Systemd Unit file and it's init section block looks like this:
### BEGIN INIT INFO
# Provides: ifcheck
# Required-Start: $local_fs
# Required-...
0
votes
3
answers
42
views
How does Linux know what function to choose in rcX.d directory?
For example, I have the following script:
...
start(){
echo "Starting..."
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart $ORA_HOME"
su - $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole"
...
0
votes
1
answer
15
views
Disable program from starting at boot on cent6, mounted filesystem
I am mounting a filesystem with guestfish. It is a Cent6 machine. I want to be sure that it is not going to start http on boot. I can't chmod -x /etc/rc.d/init.d/http, so I've opted to:
mv /etc/rc.d/...
0
votes
2
answers
354
views
RHEL6 SysV to RHEL7 systemd script for LibreOffice headless server
I had to adjust a script from an "old" RHEL6 SysV script to a "new" RHEL7 systemd script. I can do the systemd script for LibreOffice no problem, but when I try to had Xvfb (mandatory for users with a ...
1
vote
0
answers
492
views
ffmpeg streaming runs ineeficiently when started via init.d startup script
I'm using ffmpeg to stream video/audio on raspberry pi 4, using the following command
ffmpeg -re -f v4l2 -input_format h264 -thread_queue_size 512 -i ${video_device} -re -f alsa -thread_queue_size ...
0
votes
1
answer
230
views
Required display service (X server) for Debian init script [duplicate]
I'm on Debian 9.11 with the MATE desktop (pinebook pro)
I've an Init script /etc/init.d/customMapping that remaps some of my keys using both setxkbmap and xmodmap. Here it is
#! /bin/sh
### BEGIN ...
1
vote
1
answer
1k
views
AIX and daemon service
I see that the daemon service is started and stopped via the commands:
startsrc and stopsrc on group/subsystem.
I have init.d script and I want to make it daemon service in AIX.
From these commands ...
0
votes
0
answers
78
views
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 ...
0
votes
3
answers
4k
views
Understand the /etc/inittab
I am using the following /etc/inittab file (systemv):
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
# The default runlevel.
id:5:initdefault:
# Boot-...
0
votes
1
answer
29
views
start a service before than another
I want to change the iptables at 3rd.
By default, in directory /etc/rc3.d iptables service is S08iptables and I want to change it to S03iptables
I executed the command below:
ckconfig --level 3 ...
0
votes
1
answer
47
views
Variants of startup scripts
i have read of multiple options to have a script executed on startup on my gentoo linux:
systemd-service
init.d
local.d
cron
are there any other options beside these?
0
votes
0
answers
166
views
execute script on startup without rc-update
I want to execute a script that sets iptable rules on each startup.
I read about the option to write a *.start script to /etc/local.d here, but I cannot execute rc-update add local default to add
...
0
votes
1
answer
42
views
A clean way to set a daily running time for a program
Kind of a noob question but I'm looking to have my networking daemon (wicd), run every day on my machine, only from 5am-6am and 6pm-7pm, regardless of when my machine was turned on, in other words, if ...
1
vote
1
answer
1k
views
Linux ioctl VT_GETSTATE fails if process is run manually
I'm using the ioctl syscall on Linux to get the current tty in a C program.
I don't know why the ioctl fails if the program is run manually (as root) while it works as expected if the init.d script ...
2
votes
1
answer
397
views
PID is different if starting with init.d
I'm currently on a Debian 10 machine working as a small server. I installed aria2c and use it as a download service. Everything is working probably so far. My question is:
I started the aria2c as a ...
1
vote
1
answer
752
views
Why does my init.d script work when invoked manually, but not on startup?
My goal
To run x.flux with parameters on startup
My attempt
An init.d script. It can be invoked manually via
sudo /etc/init.d/xflux start
[ ok ] Starting xflux (via systemctl): xflux.service.
My ...
2
votes
1
answer
433
views
OpenWRT BusyBox init does not create /etc/init.d/rcS
I'm building an OpenWRT image (Chaos Calmer) that needs BusyBox to be configured to use init. So, in the busybox configuration, I enter the Init Utilities menu, then enable init, as well as support ...
4
votes
1
answer
3k
views
Can't enable grafana on boot in Fedora because systemd-sysv-install missing
Fairly stock standard Fedora 30 install:
$ uname -a
Linux <redacted> 5.1.16-300.fc30.x86_64 #1 SMP Wed Jul 3 15:06:51 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/fedora-release
Fedora ...
0
votes
1
answer
224
views
Need help to create (or convert) a service for Slackware
I recently switched to Slackware. I want to use NordVPN. The problem is, they only provide .rpm and .deb packages.
But that's not really important. I just extracted .rpm contents and the program is ...
0
votes
1
answer
141
views
Autostart pure-ftpd by running its Perl configuration file at the command line
I have manually built the pure-ftpd on my Raspberry Pi and it runs perfectly fine when I invoke
/etc/pure-config.pl /etc/pure-ftpd.conf
from the command line. I'd like to run that simple command /...
0
votes
1
answer
164
views
Busybox init, Kivy python application appears to block execution of ifup
I am experimenting with Buildroot, trying to create a minimal system to optimise cold boot time into a Python application (Kivy GUI). I chose to use Busybox init process because this is supposed to be ...
0
votes
0
answers
58
views
Aliases for Networking Commands
I need to run a legacy script on some newer systems, without installing packages or loading binaries. The script uses some of the older networking and SysV init commands. Is there a set of aliases ...
1
vote
0
answers
479
views
pidofproc or pidof working from init.d but not from /usr/sbin
I have a Linux service I'm supporting. It offers the usual start and stop commands. The designer created a wrapper command that is meant to control startup and retries of the main function. The ...