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

placing shell script under systemd control

Assuming I have a shell script like this:- #!/bin/sh # cherrypy_server.sh PROCESSES=10 THREADS=1 # threads per process BASE_PORT=3035 # the first port used # you need to make the PIDFILE dir and insure it has the right…
Calvin Cheng
  • 1,136
  • 4
  • 14
  • 18
6
votes
3 answers

Have FishEye+Crucible start at boot on Ubuntu

I asked this question at Atlassian but figured serverfault might be more appropriate as it's more of a sysadmin question than an Atlassian question: I have been attempting to follow this guide to have FishEye+Crucible start at boot. JIRA is already…
xref
  • 273
  • 3
  • 14
6
votes
4 answers

postgresql on Ubuntu 10.4 doesn't start on boot

I'm trying to have postgresql 8.4 start on boot on Ubuntu server 10.04 (64bit). First, I tried putting: su -c 'pg_ctl start -D /home/postgres -l /home/postgres/serverlog' --preserve-environment postgres at the end of init.d/rc.local, to no avail.…
vivri
  • 203
  • 2
  • 10
6
votes
1 answer

Launching a PHP daemon from an LSB init script w/ start-stop-daemon

I'm writing an lsb init script (admittedly something I've never done from scratch) that launches a php script that daemonizes itself. The php script starts off like so: #!/usr/bin/env php
EvanK
  • 247
  • 3
  • 7
  • 13
5
votes
0 answers

How to set TeamCity Command Line Runner default shell?

I'm starting my TeamCity agent on Ubuntu 15.10 via an init.d script like so: #!/bin/sh ### BEGIN INIT INFO # Provides: TeamCity Build Agent # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Default-Start: …
Mario Tacke
  • 150
  • 1
  • 6
5
votes
3 answers

Linux's /etc/init.d - symlink, hard link, or actual file?

I have a Debian and an RPM package that requires a start/stop script to be added to the /etc/init.d directory. Recently, I was informed by a remote developer that "those in the know" know that "best practice" is to actually install the start up in…
user2569618
  • 153
  • 1
  • 1
  • 4
5
votes
1 answer

startpar process left hanging when starting processes from rc.local or init.d

I have a peculiar issue when starting ongoing(service-like) processes from either full blown init.d script (SysV style) or a simple one-line call from rc.local file like so: su someuser -c "/home/someuser/watchdog.sh &" Where watchdog.sh contains…
Ivan Kovacevic
  • 1,801
  • 3
  • 15
  • 19
5
votes
1 answer

Where can I find a PHP-FPM RC script?

I compiled PHP on my own computer, and I want to know how to setup a script to start PHP-FPM automatically. Can anyone suggest a script that will do this for me? I'm using a Ubuntu Linux server install.
Mark Tomlin
  • 650
  • 3
  • 10
  • 23
5
votes
1 answer

How to restart postgresql 8.4 on Debian Squeeze when there are no clusters defined?

How to restart postgresql 8.4 on Debian Squeeze? /etc/init.d/postgresql stop/start/restart does nothing (no output given).
Daniil Ryzhkov
  • 171
  • 1
  • 1
  • 10
5
votes
2 answers

Debian init script from scratch

I am trying to write an init script for the SCST iSCSI target software for Debian / Ubuntu. The current one in the download does not work and seems to be outfitted to work on SuSE and others. This what I have so far, but I am basing this off of my…
AtomicPorkchop
  • 1,975
  • 8
  • 34
  • 55
5
votes
3 answers

Restart Apache and Kill All Sub Processes

I am trying to restart Apache on my server but it does not seem to kill all the processes that Apache is currently running. The command I am using is sudo /etc/init.d/apache2 restart Is there something else I should be doing that will kill all the…
Josh Pennington
  • 288
  • 1
  • 6
  • 21
5
votes
3 answers

How can I adapt this debian init.d script to work with CentOS 5?

I'm trying to get an lsyncd daemon running. I installed the lsyncd RPM from epel, but it doesn't seem to come with an init.d script. In the lsyncd repository, there's this script that works with Debian. However, when I try to run this under…
Jason Baker
  • 1,229
  • 6
  • 20
  • 26
4
votes
1 answer

Restarting Puma using init.d

I have Puma installed and running as a web server for a production Rails site, using Nginx as a reverse proxy. I want to use init.d to manage the services for both Nginx and Puma. It appears to me like I've got it setup to do this, however when…
Turgs
  • 285
  • 4
  • 9
4
votes
0 answers

Postgresql fails to start with no such file or directory error?

I was juggling Postgresql versions and I think I shot myself in the foot during the renaming of something. I have 9.3 and 9.4 installed on an Ubuntu 14.04 station, and I wanted to go back to 9.3 so I did some "file surgery" to make this happen. …
Robert Oschler
  • 161
  • 2
  • 7
4
votes
1 answer

Is there a way to control filesystem access with systemd?

So I'm diving into the intricacies of systemd and it's ability to meter resources with cgroups like cpu, io, and memory. Is there also a way to control the directories a process has access to with systemd? For instance, /usr/bin is generally marked…
1 2
3
19 20