Questions tagged [init]

119 questions
0
votes
1 answer

Set RemainAfterExit=no for a classic init script in systemd

I run a custom service with a classic init script on Debian Jessie. Debian Jessie uses systemd. The reason that I use an init script is that I also use the same service on Debian Wheezy, which does not have systemd. Since the service may crash…
jornane
  • 1,166
  • 1
  • 9
  • 26
0
votes
0 answers

Missing /etc/init.d/ipsec script after installing strongswan 5.3.2 from source

Ubuntu 14.04 (Amazon's Ubuntu AMI). Installed strongswan 5.3.2 from source (latest version in repo is too old and doesn't work). 1 question: 1) Noticed that the /init.d/ipsec (or /init/) script is missing. I'm a linux newb, so I assume this is…
lobi
  • 1,083
  • 2
  • 15
  • 30
0
votes
0 answers

How to turn off and on heartbeat service when haproxy is turned off and on?

I'd like the heartbeat service to turn off before haproxy is stopped and to turn on before it starts on a Ubuntu 14.04 Server. What is the best way to accomplish this? I'm sure one of these days I'm going to forget the proper order and so try not to…
flickerfly
  • 2,753
  • 3
  • 25
  • 27
0
votes
1 answer

Is it bad to SIGHUP the init process (PID 0), and will it reboot the server?

Background in two parts: I have not tried this due to not having a local machine on which to try currently. I've a hung, remote server where I can ssh-in, but have only partial sudo access (can send kills, but that's about it). With the…
warren
  • 18,369
  • 23
  • 84
  • 135
0
votes
1 answer

Prevent init to restart services when changing run-level

When a service, most notably httpd is configured to run in level 3 and 5 (on CentOS 6.5) and the current run-level is 3 and I move to 5 by init 5, then init restarts httpd which is silly IMHO. Is there a way to prevent this behavior ?
Waslap
  • 173
  • 5
0
votes
1 answer

Removeing ulimit from boot / init

In CentOs as from version 6 there is a by default process limit 1024 for every user i.e /etc/security/limits.d/90-nproc.conf * soft nproc 1024 I have to execute a backend service/daemon "myservice", which require a bigger value in…
Nasir Iqbal
  • 109
  • 5
0
votes
0 answers

setuid upstart not working

I have created a .conf file in which I include setuid mario setgid mario in order to run as mario user. The program I run in the exec command is forever which runs an instance of node which inside spawns cvlc. cvlc does not permit to be…
Mario
  • 127
  • 3
0
votes
2 answers

This script won't execute on startup, ideas?

The distribution is RHEL 5. The script has been added to chkconfig like so: # chkconfig --add script # chkconfig script on But it refuses to start when taking up the machine, what could be the problem? #!/bin/bash # # chkconfig: 2345 20 80 #…
davidl
  • 3
  • 2
0
votes
1 answer

What is the "best" `start on` value for an Upstart (init) scripts?

I often see start on runlevel [2345] in Upstart init scripts, but sometimes (e.g., here) I see other events being used to determine start time. How do I know which events (or status codes) should be used for a given program? For instance, I am…
orokusaki
  • 2,763
  • 4
  • 32
  • 43
0
votes
1 answer

svnserve -d child process spawning and svn connections under netstat

I see many svnserve -d processes running on my CentOS 6 box, one with the PID 400 and PPID 1 and the rest with PPID 400. I take this to mean the first one is started by init scripts (i know it is) and the rest are child processes of the original…
user160910
0
votes
1 answer

Ubuntu - Upstart with a python script that start and finish their own processes

I'm trying to setup with Upstart a python script that launch several internal procs and kill them if is required with this sentences: $ listener.py -startall $ listener.py -killall My Upstart file: # Listener Service description "Listener…
chespinoza
  • 111
  • 4
0
votes
1 answer

runuser in rc.local

I have to setup port forwarding on system start and have this configured in my rc.local runuser -l phpAdmin -c 'ssh -f -N -L 9904:localhost:3306 phpAdmin@' When rc.local is executed, is it executed as root?
foobarmoo
  • 15
  • 1
  • 3
0
votes
1 answer

init is the parent for a script: how can I find what initially launched the script?

The box in question is RHEL/CentOS 5.5 x86_64. It has been up for 80+ days. A custom watchdog script exists on the server which performs a variety of tasks and this particular script accepts a few arguments. When one of my users on the box runs the…
beaconfield
  • 123
  • 1
  • 1
  • 7
0
votes
5 answers

Weird init script issue with corosync

This probably has a simple explanation, but I certainly can't think of it. I've got corosync installed (via yum), with it's default init script. Something is strange on this particular CentOS installation as I often need to manually link…
user705142
  • 433
  • 6
  • 16
0
votes
1 answer

Can I use Upstart to start a script which requires the user's X session?

I wrote a script which greps through the output of synclient to determine whether a laptop's touchpad has miraculously turned itself off (Ubuntu seems to /love/ doing this recently) and, if so, turns it back on. The script is something like…
ledneb
  • 179
  • 6