Questions tagged [init.d]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
82 views

Yocto init hangs on Banana Pi: How to debug?

in Yocto (branch mickledore for poky and all layers) I build core-image-minimal for MACHINE ?= "bananapi-m2-zero". I flashed it to a µSD card and it starts but then it hangs somewhere in ...
HappyDonkey's user avatar
-2 votes
1 answer
84 views

MySQL service not found

I am dealing with a frustating problem. I have a CMS website that was working fine and dandy until it couldn't recognize mysql being installed. I have AWS LightSail LAMP Stack by Bitnami. I can see ...
Dynamics's user avatar
0 votes
0 answers
42 views

What's the standard way to setup a debian package to be run as a service?

I want to generate a debian package, to install a (webserver) application, running as a service. I now have a package, with only a few warning from lintian (I have left aside the confmodule for later) ...
Pellekrino's user avatar
2 votes
0 answers
135 views

Close starting service after opkg package install

I'm installing .ipk package with opkg. After that, this package starts his procd service in /etc/init.d/. What I want the procd service don't start after the package install.
Jozeph's user avatar
  • 31
0 votes
1 answer
112 views

Monit / init.d for Elixir/Phoenix and Spinx/searchd on Ubuntu

I am trying to get Monit / init.d scripts running on a few different servers, and for a few different processes on Ubuntu servers. Trying to get Sphinx to start on reboot, and to work with Monit ...
Gordon Isnor's user avatar
  • 2,085
0 votes
1 answer
233 views

Failed to stop Apache Spark Master or Slave using Systemd

Perspectives Actually I needs to configure two service files. One for Spark Master and another for Spark Slave (Worker) node. Please find the environment and service configuration as following: ...
Śhāhēēd's user avatar
  • 1,832
0 votes
1 answer
1k views

How to convert systemv startup scripts to systemd services?

Advice on converting SysVinit file to Systemd services will be helpful. Currently, I am using a systemv init script which will be executed after every boot on my STM32MP1 based Avenger96 board. Now I ...
Preeti 's user avatar
  • 567
1 vote
1 answer
450 views

Gradle still downloads dependencies already available in local repo

I have set gradle up to use a local maven repository (gmaven_stable file) using the "offline.gradle" file method in the ".gradle\init.d" directory. I constantly update the local ...
RICHARD APPOW's user avatar
2 votes
1 answer
2k views

how to autorun a shell script after boot - OpenWRT

i just got interested in OpenWRT and want to try somethings. i'm trying to run a script right after my OpenWRT boots. here is my script file customchain.sh #!/bin/sh /etc/rc.common START=99 start(){ ...
Popsicle's user avatar
-1 votes
1 answer
1k views

Why doesn't my process start at boot? (OpenWrt)

I defined the following script (it's called pcap): #!/bin/sh /etc/rc.common # Example script # Copyright (C) 2007 OpenWrt.org START=10 STOP=15 start() { echo start ./...
TryToLearn's user avatar
0 votes
0 answers
175 views

How to autostart a C application for OpenWrt?

I've read the following documentation (https://oldwiki.archive.openwrt.org/doc/techref/initscripts). My scope is to start a script when my OpenWrt device is rebooted. Anyway, I can't understand some ...
TryToLearn's user avatar
2 votes
1 answer
2k views

Log output from service in /var/log/<service-name> (sysvinit)

I have an init.d script that runs a binary as a daemon. The binary regularly writes status lines to stdout. I would like to log those lines into /var/log/my-daemon. When the start code is like this: ...
JonasVautherin's user avatar
0 votes
1 answer
1k views

Authenticate a local Spring Boot service with Google Cloud

I have a spring boot application that would run on a local server (not on a google cloud server). I plan to use a service account to allow the application to use Google Cloud Storage and Logging. I ...
szab.kel's user avatar
  • 2,416
0 votes
1 answer
504 views

Disable system logs for Spring Boot app running as Linux init.d service

I have a Spring boot application running on docker container as an init.d service. I followed the Spring Boot Unix/Linux Services guide to set it up. Since the application is being started as a daemon ...
martin.kosturkov's user avatar
0 votes
0 answers
71 views

How not to create duplicate Spring Boot application log files?

Situation I use spring-boot-maven-plugin to create executable jar package of my Spring Boot application. Application is at server (Ubuntu) managed via init.d service: /etc/init.d/{appname} start|...
jnemecz's user avatar
  • 3,288
0 votes
0 answers
470 views

Auto SSH with OpenWRT Router to AWS EC2 Server

I've got a OpenWRT router that I'm trying to make a persistent reverse ssh tunnel to an Amazon AWS server. The issue is my ISP changes my public IP so in order to ssh to it, I have to use port ...
CrossingTheRoad2020's user avatar
0 votes
1 answer
908 views

Autostart a node.js script using init.d in Debian

I have a little node application on a server (node mailer) that I run by going to its source folder and executing npm start. I figured the best way to run this automatically would be to create a ...
jcoop7777's user avatar
1 vote
1 answer
943 views

how to run springboot init.d service as non root user?

This is my springboot service which I created under/etc/init.d. I sudo as springboot user and run service like springboot@xxx~$ sudo service springboot-smsmgmt.service start which starts service as ...
user327126's user avatar
  • 1,027
1 vote
2 answers
2k views

start-stop-daemon with --background vs running using & option

What is the difference in running a process in background using start-stop-daemon with --background option and using with &?Which option is best and why?
Prasad Roy's user avatar
0 votes
1 answer
301 views

WildFly init.d scripts for SUSE Linux

I want to start and stop WildFly 15 on Linux SUSE 11 together with the machine. I'm not expert in Linux and this is my first experience with SUSE. I found WildFly comes with init.d scripts for 2 Linux ...
Daniel Rodríguez's user avatar
0 votes
2 answers
3k views

/etc/rc* not running on Ubuntu 18.04 in Docker. Cannot start cron on boot

I can't seem to convince the cron (or any other) service to start with my Ubuntu container. I'm sure I'm missing something simple. I've tried using both update-rc.d and /etc/rc.local but no joy. In ...
Matt Savage's user avatar
1 vote
1 answer
362 views

LanguageTool Java app running as a systemd service. `--languagemodel` argument is ignored

I have downloaded the LanguageTool server. I have created a systemd process for the app to ensure that it can be easily managed and begins on startup: Systemd [Unit] Description=LanguageTool Service [...
Muckee's user avatar
  • 476
2 votes
1 answer
1k views

How can I run a service inside a docker container to get feed from a IDS uEye camera using gstreamer?

I have a docker container that uses a gstreamer plugin to capture the input of a camera. It runs fine with a Bastler camera but now I need to use an IDS uEye camera. To be able to use this camera I ...
tgonzalez89's user avatar
0 votes
0 answers
196 views

Shell file skips commands when run at boot using init.d?

I'm running Armbian Linux and trying to execute a shell file at boot. The file runs perfectly when I execute it through the command line after boot. However, it skips my Python commands (which are ...
Marc's user avatar
  • 123
3 votes
0 answers
127 views

init.d script for Mojolicious app using Carton

I have a Mojolicious app that I would like to run automatically when the server starts. Normally, if I want to deploy the application, I use carton install to grab the appropriate dependencies, then ...
Ryan Dunphy's user avatar
2 votes
1 answer
4k views

Is it possible to use start init.d service using Ansible?

Ansible will fail the task below - name: Start opendj service: name={{opendj_service_name}} state=started enabled=yes because the service is a init.d service and not systemd Is it possibe to ...
onknows's user avatar
  • 6,265
1 vote
0 answers
343 views

Is it possible to test init.d script inside docker container

I need test some init.d script to check if it can be executed as expected during system reboot process. Is it possible to use a docker container to test it? In another word, can system reboot process ...
kevinlu's user avatar
  • 1,851
3 votes
2 answers
791 views

Spring Boot JAR not executing as an init.d service

I have created a Spring Boot application with the following build.gradle file (Gradle version 5.4.1): plugins { id 'org.springframework.boot' version '2.1.6.RELEASE' id 'java' } apply ...
Akshay Singh's user avatar
0 votes
1 answer
187 views

How to execute a privileged action from a CGI script

I want to restart a linux service from a shell CGI script, which obviously requires root rights. I'm kind of out of options that I know of: Giving root access to my web server seems very dangerous ...
torvin's user avatar
  • 6,603
1 vote
3 answers
4k views

Executing a native File from init.rc in Android

I want to execute a file from vendor/bin from my init.rc. Below code I have added to my init.rc file on property:sys.vendor.Test_callback=1 exec - system system -- /vendor/bin/testBinary setprop sys....
Aagman's user avatar
  • 684
0 votes
1 answer
396 views

Can't download a file via os.system('scp (...)') whithin a python script launched via a init script

I'm trying to download a remote file using the scp command called by os.system() in a Python script (scp.py) started as a service by a procd init script. This script is running on OpenWrt 15.05.1 (...
Sir Robin's user avatar
  • 182
0 votes
1 answer
2k views

Centos 7 - service from /etc/systemd/system/san.service not running with systemctl start san.service

I followed instructions from this link: https://www.thegeekdiary.com/centos-rhel-7-how-to-make-custom-script-to-run-automatically-during-boot/ But I have issue because my service is not being run. I ...
Veljko's user avatar
  • 1,728
0 votes
0 answers
935 views

Centos 7 - Script not runing from init d - manually with & it starts in background

I have created script in init.d /etc/init.d/startSanic #!/bin/bash cd /opt/horses ./startSanic.sh & startSanic is with permissions 777 startSanic.sh is with permissions 755 I intentionally ...
Veljko's user avatar
  • 1,728
0 votes
1 answer
882 views

How to put python3 manage.py runserver in a Bash Script

Here is my Bash script it's very simple. I added it to the init/d folder so it works upon rebooting my computer. I create directories and so that part of the script is working; However my server won't ...
kenedy's user avatar
  • 21
0 votes
1 answer
359 views

How can i allow a self made jar file the permission for reading and writing while autostart?

first at all i want to say, i'm not a studied programmer. I have written a server application and want to start these server automatically if i reboot a raspberry pi (operating System is debian). My ...
Björn's user avatar
  • 1
0 votes
0 answers
1k views

Script in init.d not executing

I'm trying to send a Slack notification of a server's IP address on startup. I'm running Ubuntu 18.04. The script works fine when ran from command line (creates a log file & send the Slack message)...
Perdex's user avatar
  • 130
1 vote
1 answer
371 views

Automatically run graphical python script on startup in ubuntu

I have a python script that starts a fullscreen animation when run - how do i set this to start at startup in ubuntu 16.04? Other answers to the "script on startup" problem don't work - because I'm ...
Robbie Barrat's user avatar
0 votes
2 answers
1k views

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 ...
C_o_H's user avatar
  • 1
0 votes
2 answers
202 views

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:...
JimboJones3101's user avatar
1 vote
0 answers
189 views

Looping a functions in init.d

I have an Init.d script that looks like this what I want to do is be able to start both data nodes with one command -all unfortunately my scripts logic will only start one data node. basically my ...
wheresmydata77's user avatar
2 votes
2 answers
158 views

Debian execute springboot app as service: service not found

I follow this doc: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#deployment-initd-service My app repo: └──╼ ls -l total 67556 -rw-r--r-- 1 root root 1842 nov. 7 15:06 ...
Tyvain's user avatar
  • 2,660
0 votes
1 answer
308 views

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 so: static-location-path=/opt/myapp/static ...
Ville Miekk-oja's user avatar
0 votes
1 answer
2k views

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 ...
Alex's user avatar
  • 23
1 vote
2 answers
1k views

Restarting a linux app using a respawn entry in inittab does not work

Scenario: I have a process running on linux which is started in the background by a script hooked up at /etc/init.d/ called as MyApp which is just a shell script without the .sh. Following is my init....
TheWaterProgrammer's user avatar
3 votes
2 answers
3k views

What does chef do in the end for action 'enable' for a service?

When I declare a service as follows: service "my_service" do action [:enable, :start] end What will chef actually execute in the end ? Will it just run service my_service enable and service ...
Tao's user avatar
  • 970
0 votes
0 answers
116 views

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' > /...
Sergej's user avatar
  • 1
-1 votes
1 answer
345 views

Autorun command on startup of Raspbian

I have a Raspberry pi 2 B that is running Pixel raspbian. I need it to autorun the following command on startup, which will open an HTML file in chromium: chromium-browser /home/pi/Desktop/IoT/Pusher....
Eliav Hamburger's user avatar
-1 votes
1 answer
1k views

How to create directory in /mnt/resource on RHEL Azure VM

I want to create a directory and provide user permissions in /mnt/resource folder on RHEL Azure VM during startup of the VM. df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 ...
Galet's user avatar
  • 5,973
0 votes
2 answers
5k views

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 ...
Siavash's user avatar
0 votes
1 answer
2k views

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 ...
user2850818's user avatar

1
2 3 4 5
8