Skip to main content

Questions tagged [init-script]

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

0 votes
1 answer
67 views

In sysvinit, we could list /etc/init.d. In systemd, the solution was a systemctl --all. What to do in runit? The sv command can only manage induvidual services, but not list them.
peterh's user avatar
  • 10.5k
2 votes
1 answer
927 views

I'm on Fedora, where all preinstalled shells apparently support bashisms: bash --posix does, and even sh. Still, when I used this function, pathprepend () { if [[ ":$PATH:" != *":$1:...
Arch Stanton's user avatar
0 votes
1 answer
2k views

I have a service that gets started via /etc/init.d at boot and that cause the final steps of the boot processes to be delayed long enough that it's possible to log in via the graphic display manager ...
RJVB's user avatar
  • 274
0 votes
1 answer
149 views

I'm facing an odd problem on a Buildroot environment for RPi3. I have this init.d service to start apache2 (version 2.4.57): # cat /etc/init.d/S50apache #!/bin/sh case "$1" in start|...
Mark's user avatar
  • 805
0 votes
0 answers
1k views

( First of all, I'm not completely sure what the official terms are. I think it's "suspend"/"resume", with "sleep"/"wake" being synonyms (and I'm not sure if ...
dwawlyn's user avatar
  • 23
0 votes
1 answer
457 views

I have a very simple SysVinit service in /etc/rc.d: #!/bin/bash PIDFILE="/var/run/test.pid" status() { if [ -f "$PIDFILE" ]; then echo 'Service running' return 1 fi ...
Maestro's user avatar
  • 233
0 votes
1 answer
86 views

I am building minimal operating system using busybox.I am writing init file, I want to call script1.sh file from init file. Challenges I am facing are: After running init file it is showing ./script1....
Abhishek Borse's user avatar
0 votes
1 answer
238 views

So I am working on building minimal os using busybox. What I want is I want to run my .net program from BIOS. But I am not sure linux will run .net program or not, so to clear my path I am using C ...
Abhishek Borse's user avatar
0 votes
1 answer
274 views

qemu-system-x86_64 -m 2G -accel kvm -kernel kernel6.1 -append "init=/bin/bash" -initrd myinitrd.gz Supposed to run bash as init, but kernel still prints: [ 1.400577] Run /init as init ...
exebook's user avatar
  • 202
0 votes
1 answer
951 views

I would like to executea script as root whenever I boot the system. I wrote a shell script: # cat /home/root/demo_wrap.sh #!/bin/bash `/home/root/demo_start.sh` > /dev/null & that works great ...
MisdeBug's user avatar
1 vote
1 answer
168 views

I have to tune my laptop's keyboard behaviour by lowering its brightness timeout, so I placed a one-line command in a script file, executed at boot. Here is it: $ cat /usr/local/bin/boot-script.sh #!/...
mattia.b89's user avatar
  • 3,418
0 votes
0 answers
126 views

I'm using beaglebone board, I just want to measure its boot time multiple times, so for that, I'm thinking to implement one script which reboots after every boot and stores dmesg data. Can anyone give ...
subbu Subhash's user avatar
1 vote
0 answers
313 views

I have a system with an init script that launches multiple applications, each under it's right user and group. The init script checks the home directory of each user and looks for the application init ...
user2234234's user avatar
1 vote
1 answer
1k views

I'm on Debian 10 Buster. I can't figure out what's wrong with this init.d script? Sometimes it doesn't run at server shutdown. My MySQL error_log fills up with "Status information" when the ...
Jeff's user avatar
  • 846
1 vote
1 answer
46 views

So you may get a better idea of the context, this idea comes from the specific problematic of "letting kids being progressively responsible of their own devices". So I was wondering if there ...
Etsaf's user avatar
  • 123

15 30 50 per page
1
2 3 4 5
22