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
3
votes
1 answer

openvpn post-up script fails with “Operation not permitted” if and only if openvpn is run by systemd

I have this post-up script that is run by openvpn: #!/bin/bash echo "I am: `whoami`" echo "Moving interface into the netns" ip link set dev "$1" up netns hydrogenvpn mtu "$2" echo "Listing" ip netns ls echo "test" ip netns exec hydrogenvpn cat…
Valentin Lorentz
  • 197
  • 2
  • 14
3
votes
1 answer

Systemd causing multiple supervisor processes

I'm having a problem narrowing down where the issue is for my supervisor configuration that causes a program to be duplicated. I'm running a Python Tornado Web Server through an Nginx reverse proxy. I think the problem is more related to…
OneCricketeer
  • 170
  • 1
  • 10
3
votes
2 answers

Logstash Forwarder doesn't start up with chkconfig in CentOS 5

I have set up logstash-forwarder on a CentOS 5 machine installing it from this RPM: http://download.elasticsearch.org/logstash-forwarder/packages/logstash-forwarder-0.3.1-1.x86_64.rpm When I went through the process I found the init script provided…
Rumbles
  • 994
  • 1
  • 12
  • 28
3
votes
2 answers

httpd service is not starting automatically

I compiled Apache and PHP from source on a RedHat server, but in doing that, I forget to install the httpd as service. Files used to compile Apache 2.4.7 Command used to compile Apache 2.4.7 ./configure --prefix=/etc/apache247 --with-included-apr…
Patrick Maciel
  • 143
  • 1
  • 8
3
votes
1 answer

Thin processes not starting after reboot on Ubuntu 12.04

Well, I'm running Ubuntu 12.04.2 and I have Thin installed by gem install thin sudo thin install sudo /usr/sbin/update-rc.d -f thin defaults and I have my configs at /etc/thin. But after system reboot thin processes are not started unless I run…
kishie
  • 151
  • 7
3
votes
1 answer

Starting a service only after another one is completely started (on CentOS)

I have installed on my CentOS server postgresql service and another one called netnfork. The 'netnfork' service starts only after postgresql starts. netnfork init script: #!/bin/sh # # netnfork init # # chkconfig: 2345 99 15 # description:…
artaxerxe
  • 541
  • 2
  • 10
  • 22
3
votes
1 answer

Cannot get Nginx to start on boot with Ubuntu

I'm running Ubuntu 12.04 and Nginx 1.2.1 which I compiled from source. I tried the below commands to get nginx to start on boot: $ sudo update-rc.d nginx default $ sudo update-rc.d nginx enable 2345 In both cases I'm getting the following…
Max
  • 3,523
  • 16
  • 53
  • 71
3
votes
2 answers

Sensitive data in init scripts

I'm adapting some examples I've found by Googling to build an init script to run a VirtualBox OSE virtual machine as a daemon. I would like to specify a password for VNC access to the VM, and this must be given as an argument to the VBoxHeadless…
Steve Jorgensen
  • 229
  • 2
  • 9
3
votes
2 answers

Ubuntu: How to set up an init script that only runs on the first boot?

I need to install an init script that only runs on the first boot after it's installation. How can I accomplish that on Ubuntu?
Jan Deinhard
  • 2,383
  • 5
  • 26
  • 33
3
votes
3 answers

memcached not restarting properly start-stop-daemon: warning: failed to kill 8175: No such process

im having some really weird and annoying issue with memcached. im running ubuntu server 10.04lts on a linode instance. i am using fabric with a django project and part of the fabric script allows the restart of the memcached process. today i…
Mike Waites
  • 191
  • 1
  • 9
3
votes
3 answers

Starting a daemon automatically from init.d

I installed vnstats to see bandwidth statistics, I copied an init.d file tempalte, I placed it in init.d directory, it works ok to access this file and do start/restart/status, but this file should start automatically on system boot, correct? It…
adrianTNT
  • 1,077
  • 6
  • 22
  • 43
3
votes
2 answers

Run script before shutdown/restart

I'd like to run a PHP script when an instance is told to shutdown, but of course before it actually finishes shutting down. My particular script is just looking to push some log files from the local partition to a another server. I've got the gist…
dtbarne
  • 167
  • 2
  • 13
3
votes
2 answers

Is it possible to set an Upstart service to stop $LAST

I'm wanting the rsyslog service to run until the last moment to ensure we receive as much logging as possible on our central logging servers. On Ubuntu 11.04, rsyslog's stop line is set to "stop on runlevel [06]" so it stops before (at least)…
cjs226
  • 61
  • 4
3
votes
2 answers

Reorder the way in which scripts are run at startup

I just moved to debian squeeze and need to change the startup sequence of some scripts. I used to do this with update-rc.d service defaulta xx xx but now with the LSB way of doing things the update-rc.d method does not change the order. I need to…
Ricardo Marimon
  • 529
  • 4
  • 12
  • 26
3
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
  • 31
  • 3