New answers tagged services
you should use exec and a bash subshell, for example: exec "/bin/bash -c '/etc/init.d/server restart && perl /home/sweet/crazy-stuff.pl'" however best practice recommends using a single script for all your actions ( meaning include the init.d restart command into your shell script.
That's because you need admin rights. Before opening cmd.exe right click it and select "Run as administrator". Also you can hold CONTROL+SHIFT and press ENTER to open it with admin rights.
This is not what's supposed to happen. monit reload only rereads its config file and applies new changes. Do you have the same problem if you service monit restart? How do you know Tomcat is actually restarting? Please paste the output of monit status.
The problem is partly within the configuration files and partly elsewhere. On some of the 20 machines where Bacula was installed I have altered the default port on which bacula-fd is listening (had reasons for that) and this proved to be the root of the problem. As for the /etc/bacula/bacula-fd.conf the relevant line is this one: FDport = 13802. The thing ...
Top 50 recent answers are included