1 # Puppet: Installer: Arch
2 # Maintainer: Thomas S Hatch <thatch45 (at) Gmail (dot) com>
3 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
4 # Contributor: Miah Johnson <Miah (at) chia-pet dot org>
7 getent group puppet &>/dev/null || groupadd -r puppet -g 52 &>/dev/null
8 getent passwd puppet &>/dev/null || useradd -r -u 52 -g puppet -d /var/lib/puppet -s /sbin/nologin -c "Puppet" puppet &>/dev/null || :
13 usermod -d /var/lib/puppet puppet &>/dev/null || :
21 if [ -f /var/run/puppetmasterd.pid ]; then
22 PIDOF=$(pidof -xo %PPID puppetmasterd)
23 PIDFILE=$(cat /var/run/puppetmasterd.pid)
24 if [ $PIDOF -eq $PIDFILE ]; then
25 /etc/rc.d/puppetmaster stop
29 if [ -f /var/run/puppetd.pid ]; then
30 PIDOF=$(pidof -xo %PPID puppetd)
31 PIDFILE=$(cat /var/run/puppetd.pid)
32 if [ $PIDOF -eq $PIDFILE ]; then
39 # Remove user and group