2 # Create cruisecontrol group
3 groupadd -g 52 cruisecontrol &>/dev/null
5 # Create cruisecontrol user/group
6 useradd -u 52 -g cruisecontrol -d /opt/cruisecontrol -s /bin/sh cruisecontrol &>/dev/null
8 # Change ownership of cruisecontrol related files
9 chown -R cruisecontrol:cruisecontrol \
11 /var/log/cruisecontrol.log \
12 /var/run/cruisecontrol.pid
16 # Stop cruisecontrol service
17 /etc/rc.d/cruisecontrol stop && sleep 1
19 # Remove cruisecontrol user
20 userdel cruisecontrol &>/dev/null