uawdijnntqw1x1x1
IP : 216.73.216.119
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
lib
/
initscripts
/
..
/
dpkg
/
info
/
snmpd.postinst
/
/
#! /bin/sh SNMPDIR=/var/lib/snmp set -e case "$1" in configure) . /usr/share/debconf/confmodule db_version 2.0 if [ ! `getent passwd snmp >/dev/null` ]; then if [ ! `getent group snmp >/dev/null` ]; then # no snmp user & group adduser --quiet --system --group --home $SNMPDIR \ --shell /usr/sbin/nologin snmp else # no snmp user, but snmp group exists adduser --quiet --system --ingroup snmp --home $SNMPDIR \ --shell /usr/sbin/nologin snmp fi elif [ ! `getent group snmp >/dev/null` ]; then # snmp user exists but no snmp group addgroup --quiet --system snmp # if user is local system user (not LDAP or so), then exec usermod # see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482041#25 if [ ! `getent passwd snmp | cut -d':' -f3` -ge 1000 ]; then mkdir -p $SNMPDIR || true usermod -d $SNMPDIR -m -g snmp -s /usr/sbin/nologin snmp fi fi # Bug#709087 DOCDIR=/usr/share/doc/snmpd DOCLINK=libsnmp30 if [ -d $DOCDIR ] && [ ! -L $DOCDIR ]; then rmdir $DOCDIR ln -s $DOCLINK $DOCDIR fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. # Automatically added by dh_installinit if [ -x "/etc/init.d/snmpd" ]; then update-rc.d snmpd defaults >/dev/null invoke-rc.d snmpd start || exit $? fi # End automatically added section exit 0
/var/lib/initscripts/../dpkg/info/snmpd.postinst