Questions tagged [init.d]

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

352 questions
0
votes
2 answers

Can`t find the source of max open files(ulimit) for mysql-process

i`were delegated to manage a MySQL-Server(RHEL 7) and now i have a strange Situation. The RPM-Package is from Oracle, which is using init.d-scripts and not systemd. If i check the limits of the running MySQL-Server-Process, i get 5000. Let me show…
C_o_H
  • 1
  • 2
0
votes
2 answers

raspbian Node.js executable looking for wrong path

based on this post here I tried to create an executable in folder /etc/init.d/ with the name raumserver with the following content: #! /bin/sh # /etc/init.d/raumserver ### BEGIN INIT INFO # Provides: raumserver # Required-Start: …
0
votes
1 answer

spring-boot serve static content when app is deployed as a background service (jar)

I'm having problems in serving static content with spring-boot. I have configured static content to be served through application.properties file like…
Ville Miekk-oja
  • 18,749
  • 32
  • 70
  • 106
0
votes
1 answer

Debian 8.11 init.d script won't run at startup

I've created the following init.d script per this guide, which is designed to start this branch of MaNGOS at boot: #!/bin/sh ### BEGIN INIT INFO # Provides: mangosd # Should-Start: console-screen dbus network-manager # Required-Start: $all #…
Alex
  • 23
  • 6
0
votes
0 answers

while true combined with while read init.d Script to turn phone key lights on and off

I'm trying to make a init.d script I got this so far: while true do if dumpsys input | grep "Last Raw Touch: pointerCount=1"; then echo '1' > /storage/emulated/0/sleepstate else echo '0' > /storage/emulated/0/sleepstate fi done If I touch the…
Sergej
  • 1
0
votes
2 answers

Asterisk service not operational

I've recently built/installed Asterisk 14 on a fresh Centos7 (I had to build since I need OOH323 module), using the given instructions. After running "make install" and "make config" (latter installs the service), the asterisk service seems to be…
Siavash
  • 1
  • 1
  • 1
0
votes
1 answer

How do you restart a service after you submit an openwrt page?

I'm trying to write a page in openwrt that changes the configuration of an application I wrote and then restarts a service. For now, I'm using a simple "service" that writes to a log to see that once I click "save and apply" on the page, it writes…
user2850818
  • 345
  • 1
  • 3
  • 17
0
votes
2 answers

How to auto restart Node script - or init.d service starting that node - after crash?

I'm currently having a node.js script running on my Raspberry PI running Raspbian. That node.js script gets started at boot so I just have to plug in the board. But, if the script would crash resulting in the exit of node, how could I make the boot…
Mason
  • 1,007
  • 1
  • 13
  • 31
0
votes
0 answers

Sentinel daemon from init.d in Alpine linux not stopping

I've installed a fresh Alpine linux and setup Redis by using the command apk add redis Now the installer doesn't have give us a /etc/sentinel.conf so I manually created one by copying the /etc/redis.conf. port 26379 dir /var/lib/redis bind…
Soham Dasgupta
  • 5,061
  • 24
  • 79
  • 125
0
votes
1 answer

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 start on runlevel [2345] stop on runlevel…
VIVEK-MDU
  • 2,483
  • 3
  • 36
  • 63
0
votes
2 answers

Debian: Init.d script won't run

new to Linux. I've been having a few problems since I installed some time ago, one of the main issues being my keyboard layout defaults to US on a GB keyboard. I've found the command setxkbmap -layout gb fixes this. Problem is, I have to run it each…
0
votes
1 answer

How to shell script a wrapper for a service

I have a system service, foo that is started and stopped via /usr/sbin/service restart foo. It in turn appears to be controlled by a shell script /etc/init.d/foo How can I create a "pre-start" hook, so that I can run an extra shell script prior to…
FrobberOfBits
  • 17,634
  • 4
  • 52
  • 86
0
votes
0 answers

update-rc.d remove -> insserv: There is a loop between service

I have tried to insert of my own procedure to be a part of startup sequence. This script (dudriver) is supposed to be called before mounting disk has been defined in the /etc/fstab file. /etc/init.d/dudriver : #!/bin/sh # kFreeBSD do not accept…
user5177344
0
votes
2 answers

Auto run commands on Raspberry pi

i wanted to know what would be the best approach to solving this issue. I would like to run a bunch of commands to run some python scripts and a service when the raspberry pi loads into the desktop. Here are my commands: cd /var/www/html/ python…
Zik Mir
  • 69
  • 2
  • 12
0
votes
0 answers

How execute javascript on Openwrt/LEDE firmware

I would like a script that can help me to: open a website submit password javascript:document.getElementById("password").value = "password";auth(); when it log in execute other javascript function javascript: function(); Actually I can do that…
Squalo
  • 119
  • 11