The scripts to be executed at boot, usually for starting deamons and mounting file systems.

learn more… | top users | synonyms

0
votes
1answer
23 views

Why do init scripts not run multiple times?

I'm trying to understand what goes on when I start up a linux server. My linux server has files /etc/rc2.d/S03cron, /etc/rc3.d/S03cron, /etc/rc4.d/S03cron, /etc/rc5.d/S03cron which should start the ...
1
vote
1answer
18 views

Delay an init script until another process is finished?

I am running debian Jessie. During startup I want to read some user input. This is done by a custom script in /etc/init.d/ and symlinks in the runlevel dirs. Now I want kdm, which is started by ...
0
votes
0answers
10 views

VBoxManage modifyvm --autostop-type working?

I am installing a headless server with virtualbox-5.0 on Debian. I follow instruction from this tutorial but I installed Debian 8.6 and Virtualbox-5.0 after I follow instruction from this website to ...
0
votes
0answers
9 views

Automatic mesh interface

I am creating a mesh interface on my raspberry pi's, using the "standard" set of commands: iw dev wlan0 interface add mesh0 type mp ifdown wlan0 ifconfig mesh0 192.168.202.103 iw dev mesh0 mesh join ...
1
vote
0answers
10 views

initctl does not list, start job [migrated]

Given file /etc/init/somejob.conf defined as: # somejob - testing job init description "start or stop test" script $(readlink -f $(which echo)) hey end script Does not appear with ...
1
vote
0answers
20 views

How to find status of init.d exit scripts which return 0 on failure?

It seems that many init.d scripts return 0 on failure, in spite of these recommendations. For example, in nginx, running directly: /usr/sbin/nginx -t # returns 1 (with a bad config) and ...
1
vote
1answer
78 views

Init.d script not working on startup: Failed to start SYSV

The Keystone CMS system fails to run on startup. The problem is likely in this init.d startup script. I set the permissions, but something is still not right. $ sudo systemctl daemon-reload $ sudo ...
1
vote
1answer
10 views

External storage devices not listed while init script is running

I have an /etc/init.d script that is supposed to detect an external drive mounted at /dev/sda1, if it's there it mounts it. This works fine on my odroid device with the following specs: pi@odroid64:~$...
2
votes
0answers
62 views

Read/write permissions for daemon running as non-root

I have developed a small python application that I am trying to daemonize. I have used this guide and slightly modified the example. I have the following script: #!/bin/sh ### BEGIN INIT INFO # ...
6
votes
1answer
41 views

confusing behavior of LSB Init Scripts in Debian

I am experiencing strange behavior with LSB Init Scripts in Debian Wheezy. I can demonstrate the problem on following example: The script /etc/init.d/resolvconf starts in S and stops in runlevels 0 ...
2
votes
1answer
49 views

Debian 7 to 8 Init script trouble

I recently moved a home-grown service I had running on a virtual machine (Debian 7.8) to a physical computer (Debian 8.5) and after the move, my init script stopped working. I understand there were ...
10
votes
1answer
230 views

Confused about “/etc/init.d” and services in “/lib/systemd/system”

I am completely new to the linux world, so sorry for anything wrong I might say. I am trying to run a Mongo DB on a Debian 8.5 machine. When I installed the package (pre built from percona.com), I ...
2
votes
1answer
32 views

What is it that parses the LSB information in init scripts?

At the top of files in /etc/init.d are comments like the following. ### BEGIN INIT INFO # Provides: ntp # Required-Start: $network $remote_fs $syslog # Required-Stop: $network $remote_fs $...
1
vote
0answers
17 views

Why start script and kill script does not appear in pairs in rcX.d folder?

The scripts need to be executed at boot time was put in the /etc/init.d,and files contained in /etc/rc*.d was the symbolic links point to files in /etc/init.d.Furthermore the names of the symbolic ...
2
votes
1answer
66 views

Writing daemon, /etc/rc.d/init.d/functions hangs

I am writing my own service daemon for Fedora 23 and I stucked, when my script hangs while including source function library. #!/bin/sh # # service-live-text-relation <summary> # # chkconfig: ...
1
vote
0answers
35 views

Execute file at /init before /sbin/init without an initial filesystem

Whenever Linux is booted using an initialramfs/initrd, it executes a file on the temporary filesystem at the path of /init before mounting the real filesystem and executing whatever is specified in ...
0
votes
0answers
92 views

Linux + how to shutdown application properly with reboot or init 0 + init.d scripts

I have Linux Redhat (version 6.5) machine that manages some application before each reboot or init 0 I shutdown the application as the follows: /etc/app-LM.bash /etc/app-UPP.pl /bin/DT-apl.c What ...
3
votes
1answer
1k views

unable to install anything using apt-get because of insserv

Whenever I try to install something using apt-get I get the error messages involving insserv. I have tried install many different packages but everything give same error. And apparently, CUPS package ...
2
votes
0answers
63 views

How does one run Multiple parallel Tomcat instances in CentOS 6?

I can install them to different directories, and I think I can make them use different ports, as well. I'm going to add 10000 to each port number for the second installation, and 20000 to the third ...
0
votes
1answer
80 views

Systemd pause boot while script runs

I have a script that I want to run at boot, and whilst it runs I would like it to pause the boot process. I have tried the systemd service [Unit] Description=setup script Before=default.target [...
2
votes
1answer
22 views

Update on reboot with init.d

I created a script to add a bunch of packages and update the system on a fresh install. Here's the relevant part of my init.d script that is giving me trouble: #!/bin/sh ### BEGIN INIT INFO # ...
0
votes
0answers
78 views

Unknown job error on running service

I am getting an 'start: Unknown job: elasticsearch' error when I try to do service elasticsearch start When I run service --status-all I can see elasticsearch present in the list. But I ...
0
votes
1answer
172 views

Configuring Systemd to execute extra script after httpd start/restart using ExecStartPost setting not working

I need to have a PHP file execute whenever the httpd service starts or restarts. I found that Systemd has a configuration setting called **ExecStartPost, which looks perfect for what I need to do. I ...
1
vote
1answer
89 views

start-stop-daemon always returns '0' although the process fails

I am trying to get an init script running that starts nodejs as a daemon. The problem is, that when I executing start-stop-daemon it always returns '0', regardless of what error the nodejs-daemon may ...
0
votes
2answers
49 views

Best way to start multiple “screen” scripts after restart? (centos)

We are using centos. As soon as the server is restarted and the OS is fully loaded, we would like to have a certain user ("foo") start three or four scripts with screen. For example, screen -d -m -S ...
0
votes
0answers
17 views

referencing init script from custom location for Running it as a linux daemon

I am installing a software in a RedHat or SUSE Linux system. The whole software belongs to a specific user. From my basic knowledge on linux systems for installing any script as a linux daemon you ...
0
votes
0answers
62 views

How to add squashfs file to linux live iso with initrd and mount it

I'm looking for a way I can add files to linux live iso that I've built and somehow load them to memory after or before initrd loads and then mount them as tmpfs, Anyone know how to do that? Thanks.
0
votes
1answer
26 views

Running code before initrd has been removed and after the root filesystem has been mounted

I looked here Kernel boot process and I tried to understand how to run a script before initrd filesystem removed and but after the root filesystem has been mounted (EncFS), If I understand it ...
3
votes
1answer
147 views

Trying to create a service but it won't start

Apologies if this is an obvious answer, I am a Windows admin professionally and only use Linux in my homelab to try to learn new things - so I'm very inexperienced with Linux. I am working on writing ...
0
votes
1answer
62 views

Simple manager for systemd

Is there a manager that would run in the console, similar to sysv-rc-conf, that works with the latest systemd under Linux? Ideally it would be able to operate on all runlevels, and be ncurses based.
0
votes
1answer
172 views

Do I need set ulimit for system services, such as nginx.service(systemd)/nginx(sysv)?

I know, when we run application in shell for a large website, we'd better set ulimit for our shell, But most of the service is started by systemd/sysv. Do I need set the ulimit in the service ...
1
vote
1answer
41 views

Busybox ASH inside initrd has a problem when piping tee to sed

I'm trying to log the early boot output from the init script. This is what is working: mkdir -p /run/log && \ mkdir -p /tmp && \ mkfifo /tmp/stage-1-init.log.fifo1 && \ mkfifo ...
1
vote
2answers
264 views

Real world use of suckless's “sinit” init [closed]

I'm trying to set sinit as an init for linux (on a pc..). My goal at moment is simply running a single tty/bash from it. No special mounting is required as the kernel already gets a root=/dev/sda2 for ...
0
votes
0answers
187 views

Bash script is not executing after reboot command Ubuntu 14.04

I've tried using a /etc/init.d/ script, an upstart script, crontab, etc. None of the above are causing the script to execute on boot. The service I am attempting to automatically start on boot is ...
0
votes
3answers
329 views

Startup script needs root permissions

I have a script that I need to run at startup. I have it in init.d. I need to execute one of the commands within the script with root permissions. How do I go about doing this? Edit 1: For reference,...
1
vote
1answer
3k views

Default-Start contains no runlevels

I am trying to make my custom made daemon run at startup and when I call update-rc.d ydcd enable I get the error update-rc.d: using dependency based boot sequencing update-rc.d: error: MyDaemon ...
0
votes
0answers
20 views

inittab entries without runlevels

Refering to here 1 ap::sysinit:/sbin/autopush -f /etc/iu.ap 2 ap::sysinit:/sbin/soconfig -f /etc/sock2path 3 fs::sysinit:/sbin/rcS sysinit >/dev/msglog 2<>/dev/msglog </dev/console 4 is:...
0
votes
1answer
144 views

Execute a init script from C++ program

I have a script in my /etc/init.d/ which executes an application. I am able to start,stop and get status of the service from terminal. Now I would like to start the same service from my C++ program. ...
2
votes
1answer
302 views

Explanation of systemd startup

Raspbian Jessie uses systemd and most system startup processes seem to be run from .service files. There are still a lot of SysV init entries. I gather from reading various articles that Debian 8 has ...
0
votes
0answers
55 views

dracut run hook after root is mounted

I want to run a hook after the root block device is mounted. I'm not sure what I need to do in my module-setup.sh script to get my script to run and run in the right order. I was using the dmsquash-...
0
votes
1answer
632 views

Requiring a script to sync ramdisk before and after reboot

On a specific machine I use a lot of RAM to serve websites really fast directly from RAM (which by the way is working amazingly well). For this I have mounted a ramdisk in /etc/fstab (in debian 7, via ...
1
vote
0answers
262 views

ifplugd(lo): Program execution failed, return value is 1

I have a Raspberry Pi running Raspbian, and I see this error when initializing ifplugd. ifplugd(lo): Program execution failed, return value is 1. From judging the log section, it seems to end where ...
0
votes
1answer
173 views

Init script for a daemon to run screens on CentOS

I have a question concerning a init.d script. Currently I have a init script that launches a custom daemon as follows: sudo -u "$user" $cmd >> "$stdout_log" 2>> "$stderr_log" & ...
3
votes
1answer
392 views

How to debug systemd “init” freeze during boot?

I'm trying to get my own init script running on some ARM hardware and Debian Jessie with systemd. The overall boot concept and init script is almost identical to a x86 variant, which works fine. For ...
0
votes
1answer
339 views

Init Scripts: Do I Need a PID File?

I am new to the the world of init scripts and still a BASH neophyte. I'm currently in a situation where I could use some guidance. We run an application that utilizes JBOSS and I need to be able to ...
1
vote
0answers
120 views

How to have an /etc/xdg/autostart/app.desktop service wait for a (systemd) service?

TLDR: How to have an /etc/xdg/autostart/app.desktop service wait for a systemd service? Long: I have an app started by /etc/xdg/autostart/app.desktop that requires a systemd service to be started ...
0
votes
1answer
80 views

Help with “Required-Stop:” line in System-V type init script LSB header

I wrote a daemon which watches for files in certain directory and if a new file is copied to this directory, then it is committed to SVN. New files appear in this directory only if remote devices copy ...
3
votes
2answers
912 views

systemd: running a script on shutdown after filesystems are mounted read-only

Is there a way to run a script on shutdown, after the file system is remounted as read-only? I've a raspberry pi connected to a wireless socket, which I can control via a sender and a script. I want ...
2
votes
1answer
196 views

Unable to start ZNC as a service

Firstly, this is the exact same question as found here, but the given solutions did not work in my situation. Background I am running a CentOS 6 VPS and I want to run a ZNC bouncer on it. I ...
2
votes
1answer
100 views

Which utility reads LSB headers in System V style init scripts?

Various older Linux distributions, which support System V type init scripts, require one to add LSB header to init script. For example a LSB header from /etc/init.d/sshd from OpenSUSE 11.4: ### BEGIN ...