The init.d directory contains a number of start/stop scripts for various services on a Linux system.
Questions tagged [init.d]
352 questions
-1
votes
1 answer
How to create directory in /mnt/resource on RHEL Azure VM
I want to create a directory and provide user permissions in /mnt/resource folder on RHEL Azure VM during startup of the VM.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 32G 12G 20G 38% /
devtmpfs 56G 0 …

Galet
- 5,853
- 21
- 82
- 148
-1
votes
1 answer
Create init.d script file
I have a sample file with this content:
#!/bin/bash
# Setting…

Jack Daniel
- 2,397
- 8
- 33
- 58
-1
votes
1 answer
Insert the environment path to script file to read
I have a text file which has user input i.e LD_LIBRARY_PATH. I want to add that id's library path environment text into the script file (example: /etc/init.d/scriptfilename).
Will it be possible?

prem
- 572
- 2
- 7
- 26
-1
votes
2 answers
Can't stop/restart Apache2 service
Trying to stop Apache2 service, but get PID error:
#service apache2 stop
[FAIL] Stopping web server: apache2 failed!
[....] There are processes named 'apache2' running which do not match your pid file which are left untouched in the name of safety,…

Pavel G
- 1
- 1
- 2
-1
votes
1 answer
Does puppet get the Service from init.d
I know that this question was maybe asked by someone else, but I couldn't find it.
I created a custom init script and would like that puppet uses it. So my question now is, does puppet service look into the init.d folder to find a init…

Alex
- 9
- 2
-2
votes
1 answer
MySQL service not found
I am dealing with a frustating problem. I have a CMS website that was working fine and dandy until it couldn't recognize mysql being installed. I have AWS LightSail LAMP Stack by Bitnami.
I can see that mysql is running when I run:
mysqladmin -u…

Dynamics
- 7
- 4
-2
votes
3 answers
"Can't open *.sh" message while booting
When I run a script S*.sh at startup using init.d directory to link it to /etc/rcS.d, I get the following message:
Can't open file py.sh
The py.sh is included in the S*.sh and should be executed. All files are set as superuser and and all users…

lasbr
- 79
- 1
- 8