Questions tagged [start-stop-daemon]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
733 views

start-stop-daemon: command not found . This error only occurs at boot time in a cron job

I have scheduled an @reboot cron job to start a service in /etc/init.d After boot, service is not started when I reach shell command line. The contents of /var/log/cron show the following, 2022-09-...
Ksenia Semenova's user avatar
0 votes
1 answer
335 views

systemd cannot restart service file

I have written a bash script which I want to run every 60s (don't worry, I have tried the Script out, it runs perfectly). Now I wanted to implement it in systemd .service file, but so far it doesn't ...
hans2020dieter's user avatar
2 votes
1 answer
1k 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 ...
dacracot's user avatar
  • 469
1 vote
0 answers
806 views

Debian 8/init.d: start daemon after "$named" is ready

I am trying to start a init.d daemon on Debian 8 after network and DNS is up and running. That's the script I am using: ### BEGIN INIT INFO # Provides: local_daemon # Required-Start: $all ...
noblemaster's user avatar
0 votes
1 answer
420 views

What does '-- --daemon' mean in start-stop-daemon?

On this man page for start-stop-daemon, there is an example: start-stop-daemon --start --oknodo --user food --name food --pidfile \ /var/run/food.pid --startas /usr/sbin/food --chuid food -- --...
ᴇʟᴇvᴀтᴇ's user avatar
1 vote
1 answer
2k views

Whats the proper what to terminate a script using start-stop-daemon?

I am using a start-stop-daemon to make a INIT script for my script. I am using --make-pidfile cause my script doesnt make its own pid. I can start my script using start and pid file generates with ...
user3360140's user avatar
2 votes
1 answer
3k views

start-stop-daemon not working as expected

I can't figure out why start-stop-daemon is not running the script below. What am I doing wrong? start-stop-daemon reports that it will start node when using the --test flag, but when I actually run ...
mhingston's user avatar
1 vote
1 answer
124 views

Starting lighttpd from nagios renders lighttpd broken

I'm using Debian 7.8 (wheezy), and lighttpd 1.4.31 with nagios 3.4.1. when I start lighttpd normally (as root), everything works as expected: /etc/init.d/lighttpd start However, when nagios starts ...
Flimzy's user avatar
  • 2,472
0 votes
0 answers
285 views

upstart fail to run service and not able to debug

I am using os-svc-daemon to create my upstart service for openstack project. my upstart job config is as below File : /etc/init/myservice.conf start on runlevel [2345] stop on runlevel [016] env ...
Nilesh's user avatar
  • 255
2 votes
1 answer
2k views

Cleaner way to restart daemontools services

In our product, we had created services using daemontools. One of my service looks like this, /service/test/run /service/test/log/run (has multilog command to log into ./main dir) /service/test/log/...
Prabu's user avatar
  • 121
3 votes
2 answers
517 views

/bin/sh: difference between variable and direct command

Imagine i have following bash script: #/bin/sh #next line will work correctly, outputting user name and current directory start-stop-daemon --start --exec /bin/su -- root -c 'whoami; ls' MYVAR="...
Sergey Alaev's user avatar
1 vote
1 answer
46 views

(initscripts) Execute a command, if the command does not complete in 10 seconds, run another

On (Debian) Linux I want to: Execute a command. If the command doesn't complete in 10 seconds, kill it and try another command. The use-case is: I have a daemon service which I would like to shut ...
bryan_basho's user avatar
7 votes
3 answers
12k views

PHP-FPM service status `stop/waiting` but workers are running?

Starting php5-fpm appears to work, but checking the status immediately shows that it is not running: [root@server ~]# service php5-fpm start php5-fpm start/running, process 4516 [root@server ~]# ...
Nick's user avatar
  • 4,656
8 votes
5 answers
28k views

Supplying password to openconnect started via start-stop-daemon

I am attempting to start openconnect via a Debian init script that makes use of start-stop-daemon: DAEMON=/usr/sbin/openconnect DAEMON_ARGS="<endpoint> --script /etc/vpnc/vpnc-script --user <...
Thilo-Alexander Ginkel's user avatar
0 votes
1 answer
2k views

change java process name

I am trying to change a java process name using the start-stop-daemon. When running the process without the daemon I simply add to the script: "exec -a kuku" And the java process name in the proc file ...
vivi's user avatar
  • 1
1 vote
2 answers
2k views

What things are messed up after reboot in Linux? Very strange issue: LDAPS stops working only after reboot

I have a Centos 6.3 virtualbox VM snapshot with LDAPS (openldap) set up. I've set up it few days ago following tips from different sources and wrote down everything afterwards. But when I try to ...
Dmitriusan's user avatar
0 votes
1 answer
543 views

install CouchDB without a package manager

I have the ability to shell into a Linux (RHEL6) server, and manage mostly everything, but I don't have root user abilities, so I can't use YUM or any of the available package managers on the box. ...
Brian Vanderbusch's user avatar
1 vote
2 answers
307 views

What is the maximum allowable startup time for a daemon startup script?

What is the maximum allowable startup time for a daemon startup script? I do have a tomcat server that takes a lot of time to start and I could include logic inside the startup script to check if the ...
sorin's user avatar
  • 8,216
0 votes
1 answer
2k views

How to pass environment to start-stop-daemon based nginx init script [duplicate]

I am using Nginx with Passenger to serve a Rails app. I have hit a strange problem where NginX is not reading the environment variables that the app needs when started normally by the init script. I ...
i0n's user avatar
  • 283
8 votes
1 answer
10k views

How can I generate a command for start-stop-daemon that will kill the process if it doesn't term during a timeout period?

I need to run a start-stop-daemon for a redis instance and I want it to send a SIGTERM and if the redis instance doesn't quit i would like it to force a quit. The start-stop-daemon configuration says ...
Maurício Linhares's user avatar
1 vote
2 answers
2k views

start-stop-daemon can't find executable that's right in front of it

root@mountain-lion:/opt/smartfox# ls -lha total 180K drwxr-xr-x 8 root root 4.0K 2012-06-01 14:09 . drwxr-xr-x 4 root root 4.0K 2012-06-01 09:41 .. drwxr-xr-x 8 root root 4.0K 2009-05-17 21:57 lib ...
Bart van Heukelom's user avatar
2 votes
2 answers
2k views

Proper Bash Daemon Script Creation

On Ubuntu, I copied /etc/init.d/skeleton as a new file and made it "all" executable (just like the others in that directory). In it, I made a "foo" that was just another Bash script in /usr/sbin, but ...
ServerChecker's user avatar
10 votes
1 answer
34k views

Init script does not create a PID file

I need to create an init script for an IRC logger. I copied /etc/init.d/skeleton. I filled in the configuration section to fit my needs and I also had to add --background to the start daemon command ...
Cory Walker's user avatar
0 votes
3 answers
4k views

Updating start-stop-daemon on Debian

I have Debian Lenny box, where I plan to extensively use start-stop-daemon. The trouble is, the standard Debian start-stop-daemon doesn't support output redirection: --stdout and --stderr keys, which ...
Kuroki Kaze's user avatar
0 votes
5 answers
2k views

mysql replication stop/start causes duplicate rows

We're using pretty simple MASTER->SLAVE MySQL query-based replication. Every midnight a cron script on the slave stops the replication SQL_THREAD, backs up the slaves databases with mysqldump and ...
myk00's user avatar
  • 73