The scripts to be executed at boot, usually for starting deamons and mounting file systems.
-2
votes
0answers
15 views
rm: can not remove '/var/log/jarvis.log' : no such file (or) directory
I am getting the following error when I try to install my deb package on my Ubuntu 14.04 64bits.
How to resolve this issue?
Error:rm: can not remove '/var/log/jarvis.log' : no such file (or) ...
1
vote
1answer
10 views
How do I write an LSB init script for a process that already daemonizes properly?
I have a process that already forks into the background, but I can't find any guides anywhere on how to write an init script for a program like this.
2
votes
0answers
51 views
Each service runs twice while booting Fedora 25
I updated Fedora from 24 to 25. However, while starting up the computer, each initialization service runs twice (see the attached picture). How can I fix that?
Here is the result of sudo systemctl ...
1
vote
1answer
23 views
Error trying to run agetty in a runit based linux installation
I am trying to run agetty in a runit based linux system, but I have the following problem
sh: cannot set terminal process group (136) Inappropriate ioctl for device
sh: no job control in this shell
...
2
votes
0answers
29 views
How to enable NTP sync on boot on debian wheezy
I've installed ntp, which put the ntp script in /etc/init.d. On boot, I see that ntp is running:
root@unassigned-hostname:~# ps -ef | grep ntpd
ntp 4142 1 0 21:08 ? 00:00:00 /usr/...
2
votes
0answers
28 views
'service any-service-name start' command does not work in Debian Jessie
I tried to start/stop/restart with the service command but it does not work. I have to use /etc/init.d/any-service to start/stop/restart the service.
I have checked the logs but I can't see any clue ...
0
votes
0answers
50 views
How do I import Amazon EC2 instance/user data into the environments of the services on my machine?
I am using Ubuntu 14.04 and 16.10; so my init system can be either upstart or systemd.
Things like How to set an environment variable in Amazon EC2 over on Stack Overflow show how one fetches an ...
1
vote
1answer
53 views
Disable touchpad in init script
I created a script to disable the touchpad in my computer. It works ok when I run it in a terminal. I did some work to make it start at startup because I wanted the touchpad to be disabled permanently,...
1
vote
1answer
29 views
In which init level /etc/profile or /etc/environment files are read?
TL:DR: In which init level /etc/profile or /etc/environment files are read?
I want to create a service (/etc/init.d/myservice) starting a shell script located at /opt/myservice/myservice.sh. However ...
2
votes
1answer
46 views
cannot scroll back in console (tty1)
When I boot my system, I can see the boot messages on my physical console tty1. After my X server has started, I can switch back to tty1 with CTRLALT+F1, and still see the output on the console. There ...
1
vote
1answer
31 views
Is it possible to run a program in early user space with non-root privileges?
I'm running a program from the init script in early user space, before the main root fs is mounted.
Is it possible to run an application here without root privileges?
The obvious issue being that ...
0
votes
2answers
26 views
Where does the init process / script end up?
My understanding is that, at least in early user space, init is a shell script that cannot be exited from. Is this correct?
So what happens when it comes to an end?
I am aware that in a typical ...
1
vote
0answers
86 views
`Unhandled Exception: System.ArgumentNullException: Value cannot be null.` error while running `dotnet run` using a startup script
I'm trying to run a dotnet app using dotnet run --configuration Release at system server Startup/Reboot. I'm using a init.d script to acheive the same.
My startup script, located at /etc/init.d/...
3
votes
1answer
76 views
How to make a init script instead of a service file
I'm installing rocket.chat on CentOS6, following this tutorial. It gives the first half of the instructions in CentOS7 and 6, but then when it comes to making it run as a service, it omits 6's ...
2
votes
0answers
123 views
How to run start up scripts on Amazon linux?
I'm trying to create some script that should run on start.
Now I've created some myScript file under the /etc/init.d/
and then run sudo chkconfig --add myScript;
chkconfig --list myScript output is:...
0
votes
1answer
31 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
38 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
36 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
13 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
29 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
366 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
15 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
89 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
52 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
63 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
362 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
40 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
21 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
92 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
38 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
111 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 ...
5
votes
1answer
3k 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
86 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
94 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
27 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
168 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
252 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 ...
0
votes
1answer
144 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
57 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
88 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
33 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
199 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
63 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
209 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
47 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
328 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
3answers
443 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,...
2
votes
1answer
5k 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
1answer
179 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
350 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 ...