New answers tagged

2

If you've arrived here, chances are you have two services where one depends upon the other but, because they're starting in the wrong order, the one with the dependency is failing to start. Suggestions about editing the symlinks are informative, in terms of illustrating how the startup sequence runs, and would work alright until someone did a "chkconfig on" ...


0

Would be nice to see some of your php code; what are you trying to achieve with echo ""? Anyway, you could try it with "sh -c" and "disown", like so: <?php exec("sudo sh -c 'sleep 3 && service php5-fpm restart' >/dev/null 2>&1 & disown"); echo("done"); ?> "sudo" with exec() will only work, if you put www-data in the ...


0

Stefan, you can add Out-of-the-box drivers to a Windows image via Microsoft Deployment Toolkit (MDT). The current version is MDT 2013 Update 2, for Windows 10 deployments, MDT 2013 Update 1 is the one you need (minimum version). You have the option to integrate INF driver files to your image which will be added then. Hope that helps!


0

Try putting the restart command in a shell script, starting with the sleep period. So your php function calls the script on the server, rather than restarting php directly. This way it cannot kill itself. Also check this answer to see how it can be done directly: http://stackoverflow.com/questions/9798438/automatically-restart-php-script-on-exit ...


2

You can override anything in a unit with drop-ins, files that systemd automatically reads from an include directory if it exists. For instance, if you create a directory /etc/systemd/system/myservice.service.d and then a file within that directory, directives in that file will override whatever is in the system shipped unit. For example, ...



Top 50 recent answers are included