The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
64 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
18 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 ...
1
vote
0answers
111 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
0answers
68 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
152 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
207 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
67 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
40 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
118 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 ...
1
vote
1answer
1k 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
533 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 ...