зеркало из https://github.com/microsoft/statsd.git
21 строка
571 B
Bash
Executable File
21 строка
571 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ "$1" = configure ]; then
|
|
# Automatically added by dh_installinit
|
|
if ! getent passwd _statsd > /dev/null; then
|
|
adduser --system --quiet --home /nonexistent --no-create-home \
|
|
--shell /bin/false --force-badname --group --gecos "StatsD User" _statsd
|
|
fi
|
|
|
|
if ! dpkg-statoverride --list /var/run/statsd >/dev/null 2>&1; then
|
|
dpkg-statoverride --update --add _statsd _statsd 0755 /var/run/statsd
|
|
fi
|
|
|
|
if [ -x "/etc/init.d/statsd" ]; then
|
|
update-rc.d statsd defaults >/dev/null
|
|
invoke-rc.d statsd start || exit $?
|
|
fi
|
|
fi
|