The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
29 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 ...
2
votes
1answer
140 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 ...
1
vote
1answer
41 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 ...
0
votes
0answers
94 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 ...
2
votes
1answer
301 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) ...
2
votes
2answers
197 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' ...
1
vote
1answer
24 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 ...
2
votes
2answers
2k 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 ~]# ...
0
votes
3answers
900 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 ...
0
votes
1answer
322 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 ...
1
vote
2answers
756 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 ...
0
votes
1answer
174 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. ...
1
vote
2answers
45 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 ...
0
votes
1answer
403 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 ...
2
votes
1answer
3k 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 ...
1
vote
2answers
804 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 ...
2
votes
2answers
828 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 ...
8
votes
1answer
15k 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 ...
0
votes
3answers
3k 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 ...
0
votes
5answers
1k 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 ...