Questions tagged [init]

117 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
  • 16
  • 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,779
  • 4
  • 23
  • 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,172
  • 10
  • 45
  • 59
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
  • 12
  • 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
  • 856
  • 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
  • 3,977
  • 5
  • 33
  • 41
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,397
  • 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…
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…
1
vote
0 answers

How to display init output to tty7 (or main tty)

I have created my first init script in a linux server (ubuntu if that adds any information) that checks for an update, downloads it and executes it in each hour. The init file is as follows: /etc/init/updater.conf start on (filesystem and stopped…
Blue Genie
  • 83
  • 6