On Fri, 11.10.13 00:17, David Strauss (da...@davidstrauss.net) wrote:

> We run New Relic extensively (at least a few hundred instances) for
> our customers. Here's the native systemd service unit we use. I'm sure
> we'd tweak it if we revisited it now, but it certainly works.
> 
> [Unit]
> Description=New Relic Global Daemon
> 
> [Service]
> ExecStart=/usr/bin/newrelic-daemon -c /etc/newrelic/newrelic_global.cfg -l 
> /var/log/newrelic-daemon.log -p /var/run/newrelic-daemon.pid
> ExecStop=/usr/bin/newrelic-daemon -c /etc/newrelic/newrelic_global.cfg -C 
> stop /dev/null 2>&1
                                                                                
 ^^^^^^^^^^^^   
                          This looks like some shell leftovers, but note that 
ExecStop= is not
                                                    executed by a shell, so 
this will not work.


Lennart

-- 
Lennart Poettering - Red Hat, Inc.
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to