ansible-role-statsd/templates/etc/systemd/system/statsd.service
Paul Belanger 1e5c3995e1
Initial commit
Change-Id: I2b63a94e622cbb48b3feb247c73f822a9500c36b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-03-22 20:47:11 -04:00

16 lines
358 B
Desktop File

[Unit]
Description=Statsd Service
After=syslog.target network.target
[Service]
Type=simple
Environment="PREFIX=/usr/local"
Environment="NODE=/usr/bin/nodejs"
Environment="ARGS=2>&1 >> /var/log/statsd/statsd.log"
Group=statsd
User=statsd
ExecStart=/bin/sh -c "${NODE} ${PREFIX}/bin/statsd /etc/statsd/config.js ${ARGS}"
[Install]
WantedBy=multi-user.target