sivy / pystatsd

Python implementation of the Statsd client/server
http://pypi.python.org/pypi/pystatsd/
BSD 2-Clause "Simplified" License
358 stars 87 forks source link

Run as nobody on redhat-based systems #90

Open paulegan opened 10 years ago

paulegan commented 10 years ago

Provide the --user argument to daemon in the redhat init script - otherwise pystatsd runs as root. An empty pid file is created by root first because user nobody can't write to /var/run.

Also removed the default runlevels in the init script. The Redhat/Fedora guidelines say that "only services which are really required for a vital system should define runlevels". See http://fedoraproject.org/wiki/Packaging:SysVInitScript#Chkconfig_Header.

sivy commented 9 years ago

:+1: But I defer to anyone with RedHat experience.