Sha256: 78dc520aae1189b72350424e4db075862661576436927584b225bcf92892283b
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
#!/bin/sh app_path="/home/deploy/app/current" ACTION=$1 ROLE=$2 mkdir -p $app_path/log case $ACTION in start) echo -n "Starting delayed_job: " sudo su - deploy -c "cd $app_path && ./bin/delayed_job --pool=$ROLE:2 start >> $app_path/log/delayed_job.log"; echo "done." ;; stop) echo -n "Stopping delayed_job: " sudo su - deploy -c "cd $app_path && ./bin/delayed_job stop >> $app_path/log/delayed_job.log"; echo "done." ;; *) echo "Usage: $N {start|stop}" >&2 exit 1 ;; esac exit 0
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws_stack_builder-0.1.0 | lib/generators/aws_stack_builder/templates/aws/scripts/run_delayed_job.sh |