Questions tagged [init]
119 questions
2
votes
3 answers
/etc/inittab respawn script migrating from RHEL/CentOS 5.x to 6.x
I have a non-forking perl script running as a TCP-sockets daemon (this script is a backend for a multiplayer game) in CentOS 5.7. It is being started and respawned by /etc/inittab:
pref:3:respawn:/bin/su -c '/usr/local/pref/pref.pl >/tmp/pref-`date…

Alexander Farber
- 714
- 4
- 17
- 38
2
votes
1 answer
Fedora init boot sequence
I am interested in Linux Fedora's boot sequence, specifically starting at the user-space init sequence. What are the good sources of information on this front?

jldupont
- 1,849
- 4
- 24
- 27
2
votes
2 answers
Monitor a custom Java HTTP server from a bash shell?
How could I monitor a service port from a bash shell?
I want to monitor a Java service (once per minute on port 9090) and then call "/etc/init.d/myservice -restart" if the service isn't responding with a simple HTML message.
How would you do…

djangofan
- 4,182
- 10
- 46
- 59
2
votes
1 answer
Finding out from which initrd image current RedHat session has booted
How can I find out from which initrd image in /boot/ a RedHat system has been booted from, assuming that there are multiple entries in /etc/grub.conf with the same kernel but different initrd-*.img files? (dmesg doesn't show it and there is no link…

js.
- 133
- 1
- 5
2
votes
3 answers
svnserve init.d script
Has any one got a init script for the svn service lying around that works?
Thanks

Sparky
- 242
- 1
- 5
- 12
2
votes
1 answer
My init.d script is never called with the stop parameter?
I created a script called blueBoxT for starting and stopping Oracle and placed it in the /etc/init.d directory.
#!/bin/bash
echo "blueBoxT $1 - `date '+%Y%m%d%H%M'`" >> /root/blueBoxT.log
case "$1" in
'start')
echo "Starting Oracle"
su -…

dacracot
- 469
- 2
- 13
- 28
2
votes
2 answers
Explanation of the init.d/scripts Fedora
Below is a copy of vsftpd, i need some explanations of some of the scripts mentioned below in this script:
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: vsftpd
# Required-Start: $local_fs $network $named $remote_fs $syslog
# Required-Stop: $local_fs…

Sparky
- 242
- 1
- 5
- 12
2
votes
1 answer
Rebuilding /etc/rc?.d/ links
A regular filesystem check on a Debian Lenny system triggered an fsck, and that nuked a handful of links in the /etc/rc?.d hierarchy (unfortunately I didn't keep a list).
The system seems to boot and run normally, but I'm worried its storing up…

timday
- 866
- 1
- 10
- 24
2
votes
4 answers
Need help with custom init script
I'm trying to set up an init script for a process on redhat linux:
#!/bin/sh
#
# Startup script for Conquest
#
# chkconfig: 345 85 15 - start or stop process definition within the boot process
# description: Conquest DICOM Server
# processname:…

churnd
- 4,077
- 5
- 34
- 42
2
votes
2 answers
Explain steps RedHat distros take to boot into Emergency mode?
Please, I am not looking for a rehash of what's stated in RedHat's documentation regarding emergency mode. I would like to know what steps are involved from the time grub hands off to the kernel to the time you get a emergency mode login prompt.
I…

CarpeNoctem
- 2,437
- 4
- 23
- 32
1
vote
4 answers
Custom initrd init script: how to create /dev/initctl
I have a virtual machine (VMM is Xen 3.3) equipped with two IDE HDD's (/dev/hda and /dev/hdb). The root file system is in /dev/hda1, where Scientific Linux 5.4 is installed. /dev/hdb contains an empty ext2 file system.
I want to protect the root…

Posco Grubb
- 123
- 1
- 2
- 6
1
vote
0 answers
Start script are not cleared table of processes
I have a proxy server, all ok. But, i have some problems & questions.
First: when i make "/etc/init.d/nginx stop" or "/etc/init.d/nginx restart", of my config, it not reload and all nginx process are not killed.
My script:
case "$1" in
start)
echo…

Piduna Valeriu
- 37
- 8
1
vote
1 answer
s6 supervisor: variable set with s6-envdir can't be used
I'm trying to wrap my head around s6 supervisor suite. I've figured out run and log but I'm stuck with s6-envdir and I'm not sure how do I use it.
I see that environment variable gets set, but I can't access it.
To illustrate:
# According to the…

Roman Grazhdan
- 334
- 3
- 15
1
vote
2 answers
Unable to do a PXE boot, "no filesystem could mount root" error
I'm trying to do a PXE boot with an image I created, but after loading the image and the kernel, I get the following error message:
The main error message is this:
No filesystem could mount root, tried: ext3 ext2 iso9668
Kernel panic - not…

Ted Desmond
- 11
- 1
- 3
1
vote
1 answer
How to boot after Systemd startup into program/script
I try to write a network/environment configurator for a distributed OVA appliance, similar to what Github Enterprise does, see https://github-images.s3.amazonaws.com/enterprise/Enterprise-QS-Virtualbox-Console.png. I use CoreOS and Systemd as init…

Kreisquadratur
- 111
- 1