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.

288 questions
2
votes
2 answers

Is it acceptable to use `grep` to check for the presence of a string in a file within an init script?

Is it okay for me to check the contents of a file for a given string with grep in an init script? I am concerned about introducing dependencies and general convention when it comes init scripts, and if running grep or other tools violates some…
mbrownnyc
  • 1,825
  • 8
  • 30
  • 50
2
votes
1 answer

Helping changing FTPD default umask

Default umask when logging in through FTP is 027 . I want to change this to 002 so a process with the same group can consume an uploaded file. Man 'ftpd' page says pass -u 002 to the ftpd command. But my problem is I can't find where ftpd is…
Will
  • 441
  • 5
  • 13
2
votes
1 answer

Running thin server as a init.d script on CentOS 6.3

I followed the Slicehost tutorial here and was able to get thin installed in init.d to be able to start at boot. I also created the required configuration file. When running thin from the command line logged in as root using the command below it…
BinaryMisfit
  • 1,593
  • 2
  • 15
  • 30
2
votes
2 answers

Dhcrelay init.d script runs improperly

I am trying to use dhcrealy on a CentOs 5 kernel which have kernel version 3.5.3. I configured /etc/sysconfig/dhcrelay file like that dhcrelay -i eth1 192.168.0.1 While dhcrealy is stopped, I run /etc/init.d/dhcrelay status and I get this…
ibrahim
  • 431
  • 7
  • 20
2
votes
1 answer

elasticsearch @ debian6 started by /etc/init.d max_file_descriptors

I have installed elasticsearch @ debian6 by this tutorial. I have set up my system max open files directives so i have these values: # su # cat /proc/sys/fs/file-max 70000 # ulimit -Hn 64000 # ulimit -Sn 32000 When i check elasticsearch…
palmic
  • 183
  • 11
2
votes
3 answers

Which services to disable on a CentOs 5.8 web/database server?

I have just setup my CentOS 5.8 64 [final] server as a webserver. Specs: 2x E5620 Intel CPU, DDR3 RAM, Hardware Adaptec RAID 10, 4x SAS drives. I have installed myself: Nginx PHP-FPM MySQL [ourdelta.org version] Sphinx Vsftpd Fail2ban Citadel…
Mr.Boon
  • 1,441
  • 4
  • 24
  • 41
2
votes
1 answer

Fabric doesn't launch Nginx remotely

I want to be able to start and stop an nginx server on an Ubuntu EC2 instance with Fabric. I have this two scripts in my fabfile.py: def start_nginx(): sudo('/etc/init.d/nginx start') #also tried this: run('sudo /etc/init.d/nginx…
endofu
  • 61
  • 3
2
votes
1 answer

Ubuntu Upstart job - "stop" is not recognized command

I need some help with this; endless upon endless scripts look exactly the same -- yet I can't seem to stop the job associated with an upstart script. I'm using any of the newest Ubuntu Elestic AMIs on EC2, and it happens from micro to large…
user52077
2
votes
1 answer

Chandler Start-Up Script /bin/bash vs /bin/sh

Have a Chandler install that worked fine for a number of months, but recently when I went to connect to the server, I noticed it wasn't running. SSHing in, confirmed it isn't running, so I go to manually restart via my chandler startup script…
Unpossible
  • 143
  • 1
  • 9
2
votes
1 answer

mongoDB - Linux Service Startup/Shutdown is Failing (possible unclean shutdown)

Linux administration isn't my thing so I'm a bit over my head here. System information: /proc/version -> Linux version 2.6.18-028stab091.2 /etc/debian_version -> 5.0.8 Whenever the server is shutdown & restarted, MongoDB isn't coming up. It looks…
Joe Strom
  • 21
  • 3
2
votes
2 answers

Ubuntu/Linux: how are startup parameters typically defined for startup scripts (sysvinit)?

I'm curious as to what's the standard method of telling a startup script to execute with certain parameters. For instance with MySQL, there's my.cnf, and from what I can tell, the startup parameters are derived by configuration options specified in…
WuckaChucka
  • 375
  • 3
  • 8
  • 23
2
votes
2 answers

Proper Bash Daemon Script Creation

On Ubuntu, I copied /etc/init.d/skeleton as a new file and made it "all" executable (just like the others in that directory). In it, I made a "foo" that was just another Bash script in /usr/sbin, but it was special in that it sits in a loop waiting…
ServerChecker
  • 1,498
  • 2
  • 14
  • 32
2
votes
3 answers

RH/CentOS service & chkconfig equivalents in Ubuntu/Debian

In RedHat/CentOS distros, you start and stop services with /sbin/service: /sbin/service httpd reload You set whether they should run on startup with /sbin/chkconfig: /sbin/chkconfig --levels 2345 on What are the equivalents for a Debian-based…
Adam Ernst
  • 177
  • 1
  • 6
2
votes
2 answers

What is the proper setup for "anacron"? (Ubuntu 9.10, 10.04)

I am running Ubuntu 9.10 and 10.04 on MediaTemple (ve) servers. On both of them, the anacron setup is broken, ... and they have been broken since I first installed Ubuntu. It has only come to my attention recently, when I realize my log files were…
David Jones
  • 165
  • 2
  • 8
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