~ salmonella-environment-setup (master) /awful/init-scripts/awful-wrapper
Trap1#!/bin/sh2# Awful wrapper script because it has no daemonize feature3# First argument is the PID file and second argument is the logfile4# It expects to find the awful binary in /home/chicken/chickens/use-this/bin/awful56PIDFILE=$17LOGFILE=$289args=""10[ -e "/usr/local/etc/awful/awful.conf" ] && args="/usr/local/etc/awful/awful.conf $args"11[ -e "/usr/local/etc/awful/privileged.conf" ] && args="--privileged-code=/usr/local/etc/awful/privileged.conf $args"1213rm -f $PIDFILE14/home/chicken/chickens/use-this/bin/awful $args 2>&1 > $LOGFILE &15pid=$!16exit_code=$?17if [ "$exit_code" = "0" ]; then18 echo $pid > $PIDFILE19 return 020else21 return 222fi