X-Git-Url: http://git.indexdata.com/?p=metaproxy-moved-to-github.git;a=blobdiff_plain;f=debian%2Fmetaproxy.init;h=adfdd8121c9d8f9353f1850f3ebac4eee451fc69;hp=7c54cc9407170a7534dcc41ea65c2e7a436b46ee;hb=79841cb0e1e5a4943da025ecd11b31a7cf8f7b2c;hpb=19c04fe817034081a445db6440b61d11b8c5e839 diff --git a/debian/metaproxy.init b/debian/metaproxy.init index 7c54cc9..adfdd81 100644 --- a/debian/metaproxy.init +++ b/debian/metaproxy.init @@ -132,9 +132,15 @@ case "$1" in # If do_reload() is not implemented then leave this commented out # and leave 'force-reload' as an alias for 'restart'. # - log_daemon_msg "Reloading $DESC" "$NAME" - do_reload - log_end_msg $? + # our reload makes a new PID. systemd doesn't allow it. MP-620 + if test -n "$_use_systemctl"; then + log_daemon_msg "Using systemd. Not reloading $DESC" "$NAME" + log_end_msg 0 + else + log_daemon_msg "Reloading $DESC" "$NAME" + do_reload + log_end_msg $? + fi ;; restart) #