Questions tagged [init.d]

The init.d directory contains a number of start/stop scripts for various services on your system.

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

Why interrupt key ctl+c is active during OS boot up on ubuntu 22.04 any reason for not disabling during OS boot up process?

When OS boots up on ubuntu 22.04 LTS, when ctl+c is pressed it halts or re-runs the installation. Any reason why ctl+c is not disabled? Can cons of considering enabling it? When the user presses by ...
10 votes
1 answer
6k views

SABnzbdplus will not start on boot but running the init.d script runs fine

I am running the Ubuntu 12.04 server edition (static LAN IP) and was tying to install SABnzbdplus using the apt as per instructions here: Ubuntu PPA Repository Installation has gone smoothly and the ...
0 votes
2 answers
15k views

/etc/init.d/rsyslog {start | stop | restart} : Need this to work

I have read the answer/comments for the thread Diffrence between /etc/init.d/ssh start and service ssh start. But I need this /etc/init.d method to be working. I have some auto-generated scripts ...
10 votes
1 answer
19k views

list all services

There are two ways you could do this service --status-all. The other way is to do initctl list. I would like to know the difference. some services like mysql do not show up in initctl list, and some ...
3 votes
3 answers
20k views

Can't start, stop, or interface with SSH service

Having really bizarre behavior with ssh. I have the ssh-server running fine, configured ufw (firewall) fine as well. However, it seems I can't manage ssh as a service or through /etc/init.d/ssh. I re-...
1 vote
1 answer
10k views

How to start a tftp server using inetd?

I want to start a tftp server. Here, I am using inetd. Configuration file for tftp in inetd.conf.d folder contains : tftp dgram udp wait nobody /sbin/tftpd tftpd -l /var/tftp I have changed the ...
33 votes
3 answers
51k views

How do I set which PostgreSQL version is to be used by default?

I have 2 different versions of PostgreSQL installed on my system (Ubuntu Lucid): /var/lib/postgresql/8.4 /var/lib/postgresql/9.0 By default, when I run a PostgreSQL command such as createdb or psql, ...
1 vote
2 answers
7k views

Registering an init.d service

Trying to register a service in /etc/init.d, but cannot get it to run with service myservice start and at boot-up Executable file: #!/bin/sh # kFreeBSD do not accept scripts as interpreters, using #!...
3 votes
0 answers
159 views

Unable to create OpenVPN Stunnel tunnel

I want a setup like this: OpenVPN Client <==> Stunnel Client <==> INTERNET <==> Stunnel Server <==> OpenVPN Server (OpenVPN client only talks to Stunnel client and so on and so ...
2 votes
2 answers
2k views

Ubuntu init.d configuration not starting Gerrit 2.11.4 at boot

I followed Gerrit's installation instructions. My gerrit.sh update was, as per instructions, to uncomment these 3 lines: # ======================== chkconfig: 3 99 99 description: Gerrit Code Review ...
1 vote
0 answers
79 views

Ubuntu freezes and apps don't work after I moved a file to init.d

I used sudo mv to put an .sh file into etc/init.d to make the system go through it on startup, but I either read a bad guide or didn't read carefully because I didn't configure it as I would in point ...
0 votes
0 answers
42 views

Screen logs and launching script at boot (/profile.d vs /init.d)

I had a script file (myScript.sh) with the following contents in /etc/profile.d with the to launch at start/reboot. It worked well - no issues. #/bin/bash screen -dmS p1 /home/pi/process1/process1d.sh ...
0 votes
0 answers
1k views

How to log messages from init.d scripts

I have this script in /etc/init.d, but I don't see any of its log messages in /var/log. They are of the form: echo "ACM: here I am!" >&2 Since they are all prefixed w/"ACM",...
35 votes
4 answers
74k views

How to get rid of cloud-init?

I'm using Ubuntu 14.04 image as my base box for vagrant. Unfortunately this base box contains cloud-init which causes many problems during starting-up the machine: https://github.com/mitchellh/vagrant/...
0 votes
1 answer
211 views

Unable to run a script at launch in Ubuntu

I just want to execute a script when the system starts, and after many tries and following multiple tutorials and documentation, I am unable to do it. Could you spot what am I doing wrong? Run Ubuntu ...
0 votes
1 answer
153 views

Can't run NPM from within init.d service

I have a Node.js application I am trying to get to run / stop as an init.d service (I am not using systemd since I am using WSL2). I am also using NVM, so node/npm exist within my user folder /home/...
2 votes
0 answers
381 views

Each day when the logs turn over, the system fails to find space even though there is plenty on the device; potential error with init.d script

I'm still at a loss for this specific error and any help or pushing in the right direction would be much, much appreciated. TL;DR: Many, many instances of an init.d spawned script seem to be running, ...
255 votes
3 answers
203k views

What is the difference between /etc/init/ and /etc/init.d/?

What is the difference between /etc/init/ and /etc/init.d/? More generally, what meaning does the .d suffix convey to a directory?
1 vote
2 answers
640 views

How to stop a service when a CIFS share becomes unavailable?

I have a service that is started by a script /etc/init.d/foo. When a certain CIFS share (//fileserver/multimedia on /home/username/multimedia type cifs) becomes unavailable for any reason (unmounted, ...
199 votes
9 answers
460k views

Command to list services that start on startup?

Is there a command to list services that run on startup? I imagine it would involve parsing /etc/init.d/, and the various /etc/rc.* directories.
7 votes
2 answers
6k views

What is start_daemon?

I'm trying to understand start_daemon in the following /etc/init.d/nagios-nrpe-server startup script: start) if [ "$INETD" = 1 ]; then exit 1 fi ...
0 votes
1 answer
439 views

I deleted and reinstalled Tomcat8, now it won't start ... says "tomcat not installed" ... how do I determine what's wrong?

I'm on Ubuntu 18.04 I "apt installed" tomcat8 and it was working fine ... until I messed up the configuration. So I "apt removed" it and manually deleted folders /usr/share/...
1 vote
0 answers
28 views

How do you properly fix/prevent when Systemd Units fail when binding to none local IP host/port upon system startup?

Say you have a fresh and modern Ubuntu system (say 20.04 LTS Server) installed on real hardware, and you need to deploy one or more network bound services, such as: Nginx MySQL PostgreSQL In my ...
0 votes
0 answers
216 views

Parallel starting of services at the time of boot

I am having a bit slow boot because of many services. Services listed below (Output for sudo ls -l /etc/rc$(sudo runlevel| awk '{print $2}').d): lrwxrwxrwx 1 root root 18 Mar 21 2020 K01whoopsie ->...
260 votes
4 answers
305k views

How do I stop Apache2 from automatically starting on boot?

How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.
2 votes
3 answers
11k views

dnsmasq starting before eth0 is ready and therefore not binding

I have setup dnsmasq on ubuntu 14.04. The dnsmasq part works fine. However on boot, dnsmasq runs BEFORE eth0 is up. This causes dnsmasq to not respond to queries on eth0. In syslog I can see dnsmasq ...
1 vote
1 answer
322 views

Restarting my web server on system reboot

I've made a simple web server with Ktor using build system Gradle. My build.gradle file applies the application plugin: application { mainClass.set("io.ktor.server.netty.EngineMain") } ...
0 votes
0 answers
34 views

Init.d script to let Kate/Texteditor wait for loading files from USB stick until it is mounted

I have all my programming stuff on a USB stick. Sometimes I forget to put the USB stick back in when I open up the laptop again, e.g. resume the session with the files from the USB stick open. I do ...
0 votes
1 answer
665 views

init.d bind9 aborting: "loading configuration: address not available"

Issue: You're running some Debian distribution, say, Ubuntu Server 18.04 or 20.04. You've specified an IP address parameter in a /etc/bind/named.conf: query-source address 192.168.30.2; listen-on ...
87 votes
1 answer
75k views

Difference between systemctl init.d and service

I am new to linux and have been testing myself using an Amazon Lightsail instance (Ubuntu 16.04 LTS). Going through the many guides I have came across, I see people using different commands to start/...
0 votes
0 answers
241 views

autostart stuff is not working on lubuntu - mounts and services

I' having problem getting anything non-standard to happen on autostart - I want this PC to function as a media PC, but everytime I lose power or update, I have to manually login and do a bunch of ...
0 votes
0 answers
188 views

Reboot the machine from an init.d service

I'm using an init.d script to launch a kiosk-like application in a xubuntu powered machine. The script looks this way: #!/bin/sh ### BEGIN INIT INFO # Provides: myapp # Required-Start: $syslog ...
0 votes
1 answer
104 views

How to run a script when fully booted?

I want to do something where I animate my desktop background when the computer boots up. However, I can't seem to find a way to make it run ONLY when I can see it running. When I put the script in ...
0 votes
2 answers
736 views

Automated Driver Loading: Cron, Init, or Modprobe

Main Problem I am attempting to automate the loading of drivers for my system. The drivers were built manually and must be loaded manually. Another caveat is that one of the system drivers must be ...
0 votes
1 answer
123 views

Unable to start monit

I want to use monit in a container to schedule some scripts to be executed as scheduled but am unable to start it. I've added /etc/init.d/monit start into the container's start file but still can't ...
3 votes
1 answer
3k views

Ubuntu 20.04: some services fail during boot (files missing)

I have recently updated from 18.04x to 20.04.1 LTS. All seems to work fine, except that couple of services fail during boot. Output of systemctl --failed: ● checkfs.service loaded failed ...
0 votes
0 answers
462 views

Running init scripts concurrently

In the older versions of Ubuntu we could start the init scripts parallel with modifying the file /etc/init.d/rc. This line was necessary: : CONCURRENCY=shell In the newer version 20.04 there is no ...
6 votes
1 answer
18k views

How to write an init script that will execute an existing start script in Ubuntu 20.04?

my question similar to: How to write an init script that will execute an existing start script? However, that question is outdated and I like to know how I can do that in Ubuntu 20.04 This my try in ...
0 votes
1 answer
274 views

Ubuntu 18 custom boot script to run on every boot, created manually symbolic link to the script, but still not executed

I am trying to start myscript in Ubuntu 18.04, to be executed in the boot up. For this i did the below 1) myscript is copied to /etc/init.d with proper permission as +x 2) created symbolic link using ...
4 votes
2 answers
15k views

Problem with NIS configuration

I tried to configure NIS in a server and a client both running Ubuntu 14.04 following this guide and this official guide. After a reboot the client machine got locked with this message several times ...
0 votes
0 answers
332 views

Shell script in init.d not starting on boot

I have to create a devil that starts on boot. It is currently in /etc/init.d and I've created a symlink in /etc/rc5.d since my runlevel is 5, but the "start" case in the script wont start during boot. ...
29 votes
6 answers
104k views

How to correctly add a custom daemon to init.d?

I've got a 3-rd party proprietary application server daemon which can be started and stopped by couple of command lines. I need this daemon to start when the system starts up and correctly stopped on ...
1 vote
1 answer
1k views

Ubuntu Server 18.04 - ExpressVPN at boot

What would be the correct way to start the Express vpn client at boot detailed here Specifically; In the terminal, run the following command: expressvpn connect I would want this to run at ...
0 votes
1 answer
268 views

Bootprocess of Ubuntu 19.10

I'm trying to figure out, what the system does during its boot procedure. This is how far I came: GRUB (bootloader) → Kernel → systemd (init process) systemd checks default bootlevel/target (where?)...
2 votes
3 answers
3k views

How disable programmatically notebook built-in keyboard before login screen

How can I disable a notebooks built-in keyboard - before the login screen. I have a non functioning built-in keyboard on my notebook. In it's current state it types characters randomly. I am using an ...
26 votes
6 answers
119k views

How to automatically restart Tomcat7 on system reboots?

I have installed Tomcat 7 on Ubuntu 12.04 LTS which runs on an Amzon EC2 instance. Now I wish tomcat should restart automatically on system reboot. I read this blog which suggest adding below script ...
8 votes
3 answers
37k views

Run Python Script on OS boot

This might be a question that has been repeated but i cannot find a correct way to do it . What is my case ? ->I want to run a Python script. What does the python script do in brief? ->The python ...
1 vote
0 answers
412 views

script in rc3.d not executing. correct place?

Maybe it needs to go somewhere else. I need to enable all the fans to %100. The script I use works if I run from a terminal but not on boot ln -s /etc/init/setfan.sh /etc/rc3.d/S99setfan.sh ...
1 vote
0 answers
562 views

I'd like to add a pause to a linux service, why doesn't my test work?

I'd like to make mythtv-backend pause before starting, I tried editing /etc/init.d/mythtv-backend, adding a line at start of the file echo "sleeping 100" >> /tmp/sleep_test sleep 100 It never ...
0 votes
1 answer
2k views

Can't perform upgrade due to failing util-linux, insserv & initscripts

Routine upgrade of 16.04.6 server has been failing with following errors: Preconfiguring packages ... Setting up util-linux (2.27.1-6ubuntu3.8) ... insserv: warning: script is corrupt or invalid: /...

1
2 3 4 5 6