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
1
vote
1answer
48 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
0answers
19 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
1answer
107 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 ...
0
votes
0answers
176 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
0answers
18 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
1answer
72 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
0answers
60 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/...
0
votes
0answers
8 views

I deleted the “/etc/init.d/tomcat8” script … when I re-install tomcat8, the script is not recreated … how do I get it back? [duplicate]

I'm using an Amazon EC2 instance of Ubuntu 18.04. I installed Tomcat, experimented with it, and messed up the configuration. I wanted to remove tomcat completely and start over, so I did: sudo apt ...
0
votes
0answers
25 views

init-functions to verify if network is aup/active

I used to have the following script on an old CentOs server that now I'm rebuilding on Ubuntu. #!/bin/sh # # Run-level Startup script for the 4 DarkIce Streams # # chkconfig: 345 91 19 # description: ...
0
votes
1answer
69 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
1answer
590 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
0answers
210 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 ...
0
votes
2answers
103 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 ...
1
vote
1answer
4k 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
1answer
37 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 ...
0
votes
0answers
75 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. ...
0
votes
1answer
228 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?)...
1
vote
1answer
693 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 ...
1
vote
0answers
275 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
0answers
249 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
1answer
384 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: /...
0
votes
0answers
50 views

Is there a single init script in Ubuntu 16.04 for the invocation of the booting or separate directories?

If so, where are they located? And can the init script be modified according to the system requirements? I located the /etc/init folder and I wanted to know, since Suse has one init script, does ...
2
votes
1answer
5k views

/etc/init.d/rc missing in Ubuntu18.04

I would need to adapt some scripts from Ubuntu 16.04 to Ubuntu 18.04 and /etc/init.d/rc is missing in Ubuntu 18.04. This path was moved to a different one or everything was migrated to systemd? If it ...
0
votes
0answers
1k views

Apache fails to start on boot (18.04)

I have an Apache installation that is falling over when called on boot from init.d: Oct 28 15:29:38 Myth systemd[1]: Starting The Apache HTTP Server... Oct 28 15:29:39 Myth apachectl[958]: (99)Cannot ...
0
votes
0answers
328 views

Does my init.d script look correct and do I need to reboot for it to work?

I've never made an init.d script before or any other sort of bash file so I'm uncertain if this is correct. If someone could let me know how the script looks then I'd appreciate it. For now, I would ...
1
vote
1answer
158 views

How to have the system run a bash script to remap keys after login? [duplicate]

I've got a setup-notebook-keyboard.sh script that I run everytime after logging in because I like my keyboard with the CapsLock -> Esc, CapsLock+Key -> Ctrl+Key setting. I've tried to set this ...
1
vote
0answers
104 views

How to control whether the initd script or the systemd unit file is used to start/stop/control the service?

Some packages, like apt-cacher-ng provide both a /etc/init.d/apt-cacher-ng and /lib/systemd/system/apt-cacher-ng.service. That might be a good or bad idea (in comparison to providing an apt-cacher-ng-...
2
votes
1answer
1k views

Run a script as a service in Ubuntu

I have installed elasticsearch . This is how I am running it currently. cd /elasticsearch-6.3.1/bin ./elasticsearch It is working fine. But, I want to run this program as a service. Like, I want to ...
3
votes
1answer
24k views

run script when dockercontainer starts?

If I create a dockerfile based on Debian I can add the following line to execute a script when I'm initiating the container: COPY userconf.sh /etc/cont-init.d/userconf What would be the equivalent ...
0
votes
1answer
3k 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 #!...
0
votes
0answers
134 views

How to restart system and desktop after pivot_root

I'm using ubuntu 16.04 for my OS system. I had changed to new root with pivot_root. And tried to restart all the system and the desktop. I would not try to use reboot cause it will reboot the old ...
2
votes
0answers
60 views

Why are some packages installing init-scripts and systemd config files? Aren't init-scripts superfluous by now?

nginx for example installs: /etc/init.d/nginx /lib/systemd/system/nginx.service https://packages.ubuntu.com/bionic/all/nginx-common/filelist Shouldn't /etc/init.d/nginx be removed from the package?...
2
votes
0answers
890 views

Running a Windows .exe service on Ubuntu (with Mono?) [closed]

I have a service that was coded that I need to move over to linux. Got the code and got it up and running as a .exe on windows to start using installutil. However quite unsure how to get it working ...
0
votes
0answers
153 views

Bash script which starts on startup to do 3 things

I have add the following to my /etc/rc.local: folder=/home/secrets inotifywait -m -q -e create -r --format '%:e %w%f' $folder | while read file do mv -f /home/secrets/chaps.secrets /etc/ppp/...
1
vote
1answer
2k views

How to respawn automatically a process(wso2am)?

I have an upstart script as # Ubuntu upstart file at /etc/init/wso2am.conf #!upstart description "wso2am" pre-start script mkdir -p /var/log/wso2am/ end script respawn respawn limit 15 5 ...
1
vote
1answer
2k views

Why does changing a init.d service start script makes no difference? The /etc/init.d/ script has a stale ExecStart

No matter what value I set in the line DAEMON=/home/odoo/odoo/odoo-bin it always runs the old process in ExecStart. In other words, my changes aren't applied. I am running sudo nano /etc/init.d/odoo ...
2
votes
1answer
562 views

init.d / rc2.d script gets executed twice sometimes

I have a startup script, that sometimes gets executed twice (a few seconds apart) upon system boot (Ubuntu 16.04.3 LTS). Sometimes it only gets executed once! The script is located at /etc/init.d/TEST ...
1
vote
0answers
1k views

Service starting failed - Failed to start SYSV

My objective is to start a personal daemon called gobatch. gobatch is stored into /usr/bin/gobatch. gobatch is a deamon that allows you to run cyclicaly at a date or a specific time a program. ...
0
votes
2answers
741 views

Error when I start /etc/init.d/my_program

I need to develop a program with Python3 which executs automaticly programs at specific times. I must use a deamon. That's why I created a file into /usr/bin/ and /etc/init.d/. However, when I run ...
0
votes
1answer
671 views

(terminology) init.d script = LSB Init Script = System V Init script?

I'm having some trouble recognizing the different types of (traditional) system process management tools by name. By "traditional" I mean before the likes of upstart, systemd, launchd etc. which I ...
1
vote
0answers
1k views

Error while running a python3 script on startup

I'm trying to run a python script ( /home/user/Desktop/file.py ) on startup by making a bash script ( /etc/init.d/file.bash ) that runs the python script #!/bin/bash case "$1" in start) echo "...
1
vote
1answer
337 views

Problem trying to start postsrsd service in 16.04

When I try to start postsrsd with sudo service postsrsd start, it results in the following syslog entries: Started SRS lookup table for Postfix. /usr/sbin/postsrsd: option requires an argument -- ...
0
votes
1answer
59 views

How can I make sure one Upstart service starts before other non-Upstart (System V) service?

Is there a way to run one Upstart service before another non-Upstart service (system V, to be more precise)? Or I must "convert" my Upstart script to a System V script (if it provides such ...
3
votes
2answers
14k views

ntp.service not getting started on bootup

I am upgrading my system from 14.04 to 16.04, I am facing this issue of ntp.service not getting started on bootup. $ sudo systemctl status ntp.service ● ntp.service - LSB: Start NTP daemon Loaded:...
-1
votes
1answer
1k views

insserv: warning: script 'S99runlcactivator' missing LSB tags and overrides [duplicate]

I am unable to install a new software or upgrade the existing ones. I have been getting insserv warning (see here) Please help.
0
votes
1answer
59 views

I accidentally deleted the /etc/rc3.d directory on my Ubuntu 16.04 installation can someone list the contents for me?

I accidentally deleted the /etc/rc3.d directory on my Ubuntu 16.04 installation can someone list the contents for me, with ls -all so I can see the symbolic links. Thanks in advance!
0
votes
1answer
7k 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 ...
1
vote
0answers
921 views

Launch docker deamon at startup when offline

On a 14.04 LTS, my docker daemon doesn't start at init when internet isn't available. An ifconfig doesn't show any docker0. The only related message I've found is in /var/log/kern.log : IPv6: ...
0
votes
1answer
658 views

How to debug a service that “crashes” Upstart (supervisor, in this case)

I running Ubuntu 14.04. I have several services configured to run on boot, one of which is supervisor. I boot into runlevel 2, so all of the services in /etc/rc2.d/ should be started at boot. /etc/...
0
votes
0answers
76 views

Exact number of system services

In Ubuntu 16.04.2 LTS with 4.4.0-75-generic Within /ect/init.d/ $ ls -1 | wc -l 82 On the other hand, $ systemctl list-units | grep service | wc -l 75 Why do those two numbers differ? Shouldn't ...

1
2 3 4 5