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.

51 questions
21
votes
1 answer

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-stop-daemon --start -b --oknodo --user "$user" --name…
daisy
  • 53,527
  • 78
  • 236
  • 383
12
votes
3 answers

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? (root@Kundrum)-(11:03:19)-(~) $nano…
somethingSomething
  • 5,721
  • 18
  • 58
  • 98
9
votes
1 answer

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: networking Got this error when I wanted to restart…
Alex Jones
  • 6,223
  • 17
  • 51
  • 83
8
votes
4 answers

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! Typing which…
JonS
  • 81
  • 1
  • 1
  • 4
7
votes
1 answer

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 $PLAY_BINARY --chuid $USER:$GROUP --chdir $HOME --start…
RikyTres
  • 203
  • 3
  • 8
5
votes
3 answers

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 Conda virtual environment. I'm using a lot of…
5
votes
2 answers

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 /opt/google_appengine/dev_appserver.py…
Alex.Barylski
  • 191
  • 1
  • 2
  • 9
4
votes
1 answer

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 when it stops. Is this configurable? Can I setup…
volingas
  • 183
  • 5
4
votes
2 answers

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 executable (My PATH is fine.) According to…
Patrick R
  • 93
  • 1
  • 6
4
votes
0 answers

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 tried to debug it by running it with bash -x, but…
Han
  • 141
  • 3
4
votes
0 answers

apache2ctl versus systemctl

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 apache2ctl has a few extra features. Does systemctl…
4
votes
1 answer

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 /lib/lsb/init-functions, to redirect the daemon's…
thb
  • 1,125
  • 12
  • 21
4
votes
2 answers

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 error update-rc.d: error: mydaemon Default-Start…
Luke Moll
  • 153
  • 1
  • 1
  • 6
4
votes
0 answers

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 into a problem where Ansible fails with this…
3
votes
0 answers

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 = /usr/local/bin/start-tdk-api.sh ExecStop = …
Nuñito Calzada
  • 71
  • 1
  • 10
1
2 3 4