Questions tagged [init.d]

The init.d directory contains a number of start/stop scripts for various services on a Linux system.

The init.d directory contains a number of start/stop scripts for various services on a Linux system.

291 questions
0
votes
1 answer

How to properly create a startup script for tracd on Synology DS209+II?

I'm running tracd on a Synology DS209+II NAS. For that purpose, I have created a script in /opt/etc/init.d called S81trac: myserver> ls -l /opt/etc/init.d -rwxr-xr-x 1 root root 127 May 19 09:56 S80apache -rwxr-xr-x 1 root …
Daren Thomas
  • 113
  • 2
  • 5
0
votes
1 answer

`# probe: true` in /etc/rc.d/init.d/* files on a RedHat system

Some files (e.g. nfs, nfslock, bind) in my /etc/rc.d/init.d/ directory have in their comment header a line such as: # probe: true I found that those particular scripts has the probe verb i.e.: service nfs probe But this is due to the fact that the…
Chen Levy
  • 283
  • 3
  • 13
0
votes
1 answer

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 occurs. I upgraded the package and noticed that…
Kal800
  • 3
  • 1
0
votes
0 answers

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, the script will run successfully, manually with…
Ryfor
  • 1
  • 1
0
votes
0 answers

troubleshooting alpine netboot init scripts

So must be very close but not seeing answer. Have no issues w/alpine netboot, overlays or anything like that. First time trying to use a sdcript that loads on startup in an overlay tho. Already consulted most relevant serverfault guide to using init…
josh
  • 101
  • 1
0
votes
2 answers

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 calling the stop method followed by the start…
Ror
  • 321
  • 3
  • 16
0
votes
1 answer

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-instance suitecrm2 Setting up /etc/apache2-suitecrm2…
Stephane
  • 43
  • 3
0
votes
1 answer

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 start the service and look into the logs, I see…
0
votes
1 answer

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 fails to start, and in /var/log/messages I…
0
votes
0 answers

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/mongod To test this, I killed the process, and…
0
votes
0 answers

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 executable (is working fine) place link of the init.d…
0
votes
1 answer

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 on an otherwise stable system. I set up a…
richp10
  • 121
  • 2
-1
votes
2 answers

Centos wont create init.d startup files

recently i installed vnstat on my fresh linux machine. so after installing it with yum install vnstat , before it i installed epel! so now i cant start it: service vnstat start error: unrecognized service i have tired searching a little then i found…
-1
votes
2 answers

Can't get init.d or network/if-up.d scripts to start

I'm running debian (latest version i believe), and I just can not get my script to run at boot. I've enabled it with update-rc.d, and tried saving it to /etc/network/if-up.d but it just won't start. When I run it manually it works fine. Can anyone…
Znerox
  • 1
  • 1
-1
votes
1 answer

What is the minimal init.d script for Ubuntu?

I have a small Python-based server program that runs fine, but I want launched each time the server is rebooted. What is the least that I need to put into an /etc/init.d script to work? I only care about "stop" and "start" (and thus probably the…
Paul Hoffman
  • 2,214
  • 5
  • 19
  • 23
1 2 3
19
20