Questions tagged [init.d]
The init.d directory contains a number of start/stop scripts for various services on a Linux system.
291 questions
0
votes
1
answer
878
views
application runs from command line, but cannot start as init.d script - openWrt
Got a problem with my service written in C. It runs as an init.d service and has been working fine for many months on many devices. Today I've made some changes in the software and very strange thing ...
0
votes
0
answers
2k
views
Oracle 19c on Oracle Linux 8, dbora start script ONLY starting when chkconfig sets it to level S99. Any other level like S98, fails to start on reboot
I'm running Oracle 19c on Oracle Linux 8, dbora start script ONLY starting when chkconfig sets it to level S99. Any other level like S98, fails to start on reboot. Regardless of the chkconfig level, ...
1
vote
1
answer
1k
views
start-stop-daemon: command not found . This error only occurs at boot time in a cron job
I have scheduled an @reboot cron job to start a service in /etc/init.d
After boot, service is not started when I reach shell command line. The contents of /var/log/cron show the following,
2022-09-...
0
votes
2
answers
4k
views
Monit restart process behavior
Monit's documentation states the following for the restart action :
RESTART restarts the service and send an alert. Restart is performed
by calling the service's registered restart method or by first ...
3
votes
1
answer
30k
views
systemd failing enable with "service is transient or generated". What's wrong with this configuration?
In General
I've been scouring the web looking for actually helpful documentation about systemd and this error, but the majority of it has been troubleshooting niche cases or goes into such extreme ...
0
votes
1
answer
403
views
Create init.d Apache service for multiple instances on debian
I am trying to install a second instance of apache on debian. I used the multiple instance script. during the installation it says:
root@nextcloudpi:/usr/share/doc/apache2/examples# sudo sh setup-...
0
votes
1
answer
247
views
type -p java does not work in a init.d script
I am trying to modify /etc/init.d/jenkins script, in order to add my custom java path. My solutions is this:
JAVAPATH=$(type -p java)
PATH=/bin:/usr/bin:/sbin:/usr/sbin:$JAVAPATH
However, when I ...
1
vote
0
answers
650
views
init.d and remote files systems
The Linux Standard Base Core Specification, 22.4. Installation and Removal of Init Scripts says:
An init script shall be installed in /etc/init.d (which may be a
symbolic link to another location), ...
0
votes
1
answer
170
views
init.d kills my mongod process due to respawning
I'm using Ansible to start the mongod service on a Centos 6.8 VM.
The task is pretty straightforward:
- name: Start mongod service
service:
state: started
name: mongod
However the service ...
0
votes
0
answers
764
views
How do I get init.d to respawn a crashed process if the lock file exists?
I'm running a mongod process on my Centos 6.8 box, and I want to provide some level of resilience in the event of process death.
So I created an entry in my /etc/inittab -
md:2345:respawn:/usr/bin/...
0
votes
0
answers
1k
views
Tomcat does not shut down correctly with init.d script on system-shutdown - restart prevented
I want to start Apache Tomcat 7 on my Redhat 7 server (RHEL7) automatically at system startup.
In order to do that, I did the following steps:
creation of the following init.d script and make it ...
0
votes
1
answer
206
views
S6 - slow startup service incorrectly starts second time
I'm using s6 (http://skarnet.org/software/s6/) in order to supervise processes.
I have this working well for hundreds of processes across dozens of docker instances and servers. I have a new problem ...
1
vote
1
answer
339
views
Does running cron by itself have the same behavior as via the init.d script?
I'm working with some code that fires up cron on a server (which doesn't have it running at boot time). The script which starts cron sets up some logging stuff and then simply invokes cron. It doesn't ...
3
votes
1
answer
8k
views
Create a custom /etc/init.d script in Debian 10 Buster
I need to develop an /etc/init.d script to start and stop a server (binary executable) in Debian 10 Buster. Whereas in earlier versions of Debian, you would write a complete shell script that issues ...
4
votes
1
answer
16k
views
Where should init scripts be placed in Amazon Linux 2?
In the Amazon Linux 2 release notes, Amazon advises that initscripts should no longer exist in /etc/init.d
Amazon Linux 2 uses the systemd 219 init system to bootstrap userspace and manage system ...