Questions tagged [start-stop-daemon]

Use this tag for questions about start-stop-daemon, a command to start/stop/status jobs on Debian and derivatives, with sysvinit. Use the systemd tag instead for systemctl based job management.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

start-stop-daemon --test not returning the expected result (UWSGI on Docker)

I am troubleshooting the stack of sysvinit scripts shipped with Debian (Buster) for UWSGI /etc/init.d/uwsgi. From debugging my Docker instance, I can see that the UWSGI master and workers are running ...
0
votes
0answers
37 views

Systemctl daemon only works when verbose is enabled

I have a daemon in init.d which except for the name and description has exactly the same structure as the standard ubuntu skeleton file. When I try to run said daemon using sudo /etc/init.d/mydaemon ...
1
vote
1answer
283 views

AIX and daemon service

I see that the daemon service is started and stopped via the commands: startsrc and stopsrc on group/subsystem. I have init.d script and I want to make it daemon service in AIX. From these commands ...
2
votes
0answers
398 views

Unable to kill / terminate programs if another terminal window opened

I’m running a program on raspberry pi which opens few other python programs for a certain amount of time and then closes them. What is happening: if I’m running the main program from e.g. Python 3 ...
2
votes
1answer
164 views

Stop sshd and kill ongoing connections

Under certain conditions, I want the sshd daemon to be stopped. When I do this, I want the currently open connections to be stopped too. By default, the sshd service does not kill existing connections ...
0
votes
1answer
21 views

start-stop-daemon - strange behaviour

My setup There is a box containing an NSLU2 (aka a "slug") controlling a church heating system and running Slugos (which is essentially Linux 2.6.27.8 - the IOT tends to be running somewhat ancient ...
3
votes
1answer
9k views

How to fix “.service: Start request repeated too quickly.” on custom service?

I'm learning how to create services with systemd. I get this error: .service: Start request repeated too quickly. I can't start the service any more; it was working yesterday. What am I doing wrong? ...
0
votes
1answer
153 views

How to make my sysvinit service work on as many distros as possible?

I am attempting to write a cross-platform sysvinit service that works on as many sysvinit systems as possible. Things I need: The process needs to daemonize (it does not automatically daemonize ...
1
vote
1answer
179 views

Verify cron daemon is enabled in Slackware 14.2

How will I know if cron daemon is running in my Slackware installation? I tried the code below and it returns me nothing. It means cron is not in /etc/rc.d folder. ls /etc/rc*.d | grep crond
1
vote
1answer
92 views

Slackware 14.2 - Turn on the auditd daemon

I want to turn on / enable the auditd daemon to record system events in Slackware 14.2. I could not see the daemon auditd, when I run the code below: ls /etc/rc*.d | grep "auditd" It means it was ...
2
votes
2answers
4k views

How to deal with “A stop job is running” in Debian 9 for 90s, once every 2 or 3 shutdowns?

When I'm turning my Debian Stretch (9) off, chances are that I see something like: So a have a few questions: 1) It seems like a bug that's not been solved yet (it's been around for a few years). By ...
3
votes
0answers
2k views

Failed to get properties: No such interface '' in Ubuntu 16.04.3 LTS

I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x with this content: [Unit] Description = tdk API daemon [Service] Type = simple ExecStart ...
0
votes
1answer
413 views

no process in pidfile; found running, none killed

I'm working on an emailnotifier script on RaspberryPi which was written in Python. I've found a tutorial page, I've exactly copied the default code (which works fine with a simple "python ...
0
votes
1answer
3k views

Debian start-stop-daemon equivalent in CentOS

I have a bash script that is written in a debian-based distribution (System-V) and I want to run it under CentOS 7. There is a part of the script that runs a command as a daemon like this: start-stop-...
4
votes
2answers
4k views

Debian Stretch - where did start-stop-daemon go, and how do I get it back?

I'm trying to recover from a faulty installation, and want to remove some packages. But I can't. # apt autoremove offending-package dpkg: warning: 'start-stop-daemon' not found in PATH or not ...
1
vote
1answer
982 views

How to start git-daemon at boot?

I've created scripts to control starting, stopping, etc. of my git-daemon on Fedora28. I'm now attempting to link these scripts to a systemd service so git-daemon will be available after reboot. The ...
1
vote
2answers
7k views

Why `systemctl stop service` can't invoke the service?

vim /home/mytest.sh rm -f /home/mytest/* I want to write a service to execute the remove action. My expections: sudo systemctl stop mytest can delete files in /home/mytest sudo systemctl start mytest ...
4
votes
0answers
946 views

How can I start nfs-common service in chroot environment?

I'm trying to start NFS client daemon on my Debian 9.3 machine, but it doesn't start with the following message. $ sudo service nfs-common start [FAIL] Starting NFS common utilities: statd failed! I ...
0
votes
1answer
1k views

pgadmin4 service won't start

I am not a sysadmin but since I can't afford paying one, I need to do the job myself ;-) I have a lxc container running on a proxmox4 box. proxmox4$ uname -a Linux dbd 4.4.98-2-pve #1 SMP PVE 4.4.98-...
0
votes
1answer
512 views

postgres processes running while not using it

as in the object of the discussion thread I have the following situation: all time I start my linux OS, I check processes running with the top command in bash and I always find 7-8 postgres processes ...
4
votes
0answers
253 views

apache2ctl versus systemctl [duplicate]

I'm wondering about the implications of using either apache2ctl or systemctl. If I understand correctly one shouldn't use anything but Systemd's utility to control services but on the other hand ...
0
votes
1answer
307 views

start-stop-daemon Python script as service using SSL

When I start a LSBInitScript as a service I get an SSL error because my script uses an SSL certificate to operate. The certificate lies in the same directory as the script itself. Why do I get the ...
1
vote
1answer
1k views

start-stop-daemon no pid file was written

Have already --make-pidfile in start-stop-daemon, but still couldn't see pid file being created. Anybody can help why? #!/bin/bash ### BEGIN INIT INFO # FIXME: set Provides and Short-Description # ...
3
votes
1answer
4k views

How to redirect a daemon's stdout and stderr using start-stop-daemon(8)?

I run Debian 8 jessie. I have activated a daemon's debugging facility, which causes the daemon to print debugging info to stdout and/or stderr. How can I persuade start-stop-daemon(8), as invoked by /...
4
votes
2answers
13k views

Set daemon to start at boot with systemd

I'm writing a daemon to manage my Java app on a headless Ubuntu 16.04 box using jsvc and this (probably pre-systemd) tutorial, and got as far as running update-rc.d mydaemon enable, receiving the ...
3
votes
2answers
12k views

Running a Python script in Conda virtual environment as service

I recently wrote a Python program that is designed to communicate via SMPP SMS server. The issue I'm facing is that I don't know how to run a Python script as a service on my Cent OS server using ...
0
votes
0answers
776 views

service doesn't work

Background I am using this script in order to make my script running as service. I am using Linux Mint 17.3 Rosa. The problem Sometimes the start/stop works sometimes not. Sometimes, I have to ...
3
votes
1answer
866 views

Why “start-stop-daemon” spawns two processes?

Here is a piece of my SysVinit file. NAME="flask-daemon" PIDFILE="/var/run/"$NAME".pid" DAEMON="/home/ubuntu/flask/run.py" DAEMON_USER=root f_start() { echo -e "\nStarting : $NAME" start-...
0
votes
0answers
684 views

linux + start script under /etc/init.d dependencies with other services

from some reason the script UPMnT.sh not start at boot I cheeked everything: chkconfig is ok links are ok but I worry about maybe there are dependencies between other script to this script can ...
0
votes
1answer
1k views

Stopping infinit loop from php script run in linux terminal

I am currently following a tutorial that teaches how to create a queue in php. An infinite loop was created in a php script. I simplified the code in order to focus on the question at hand: while(1) {...
1
vote
2answers
1k 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 ...
2
votes
1answer
2k views

start-stop-daemon blocks for process with infinite loop

I have a task to design a service out of a bash script in order to be called in the way service ... start/stop/restart. The script that is to become a service is a infinite while loop which wakes up ...
0
votes
1answer
741 views

init.d script : how to stop all process tree with start-stop-daemon

I made an init.d script that don't stop properly the service i run: start() { echo "Starting Server" rm -f $LOGFILE start-stop-daemon --start --background --chuid $USER:$GROUP --pidfile $...
2
votes
2answers
4k views

I cannot kill crond - trying to stop cron service

This is frustrating, I try: service crond status And get this: Redirecting to /bin/systemctl status crond.service crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond....
4
votes
0answers
3k views

start-stop-daemon, services, environment variables, and ansible

So, I have a Java program that runs Ansible. I'd like to run this program as a service. I've written a service script in /etc/init.d that uses start-stop-daemon to run/stop the Java program. I've run ...
1
vote
1answer
4k views

lsb - log_daemon_msg echoes messages in shell console!

#!/bin/sh . /lib/lsb/init-functions log_daemon_msg "this is a daemon s message" On the shell console, it prints, this is a daemon s message A daemon process doesn't have stdout at all. So why do ...
6
votes
3answers
40k views

Running init.d script produces “start-stop-daemon: not found”

I try to start monit using: /etc/init.d/monit start I then get the error: [....] Starting daemon monitor: monit/etc/init.d/monit: 124: /etc/init.d/monit: start-stop-daemon: not found failed! ...
2
votes
1answer
9k views

Passing variable in init.d script

I have the init.d script show below. I want to start the daemon with the argument --http_root /tv When I start the application without the daemon the argument is accepted However I cannot seem to ...
9
votes
1answer
11k views

unable to restart networking daemon

When I type sudo service networking restart, I am getting error as shown below: edward@computer:~$ sudo service networking restart stop: Job failed while stopping start: Job is already running: ...
3
votes
1answer
2k views

rngd - multiple instances from init script

On Ubuntu >=12.04, what is the most correct/prettiest way to get rngd to run in multiple instances using an init script? The current one only accepts one random source, so multiple instances are ...
5
votes
2answers
13k views

start-stop-daemon won't start my Python script as service

I am trying to run Google AppEngine on my Debian machine, I created a file init.d/gae: . /lib/lsb/init-functions # # Initialize variables # name=gae user=$name pid=/var/run/$name.pid prog="python /...
2
votes
1answer
2k views

start-stop-daemon returning always 0 (success)

I have set up start-stop-daemon to start my script automatically case "$1" in start) log_begin_msg "starting foo" start-stop-daemon --start --chuid nobody --user nobody --pidfile \ ...
7
votes
1answer
8k views

The equivalent of start-stop-daemon for RedHat 6

I have an upstart script to create a service in RedHat 6: env PLAY_BINARY=/usr/bin/play env HOME=/opt/warda env USER=root env GROUP=root [...] script exec start-stop-daemon --start --exec $...
3
votes
1answer
232 views

Adding a label to start-stop-daemon service in process list

I have a bunch of redis service instances, and I would like to add a label to them in the output of the ps command. Currently I see: $ ps aux | grep redis root <snipped> /usr/local/bin/...
19
votes
1answer
36k views

start-stop-daemon not working as expected, no pid file was written

I'm trying to control a python based program (which doesn't detach itself from console) #!/bin/bash user=nobody pid=/var/run/xx.pid name=xx prog=/xx.py case $1 in start) /sbin/start-...