Skip to content
Permalink
Browse files

Updates upstart script

  • Loading branch information
davidmerfield committed Nov 24, 2019
1 parent 2128bd9 commit 07ff9563b56fc49d64bffaf6b970fc9ba82d8274
Showing with 9 additions and 4 deletions.
  1. +9 −4 config/upstart/blot.conf
@@ -14,6 +14,15 @@ env LOG=/var/www/blot/logs/sys.log
# respawn
# respawn limit 10 5

pre-start script

# Source the environment variables needed by Blot
. /etc/blot/environment.sh

# Ensure the cache directory has been mounted to ephemeral instance storage
exec sudo -E $BLOT_DIRECTORY/scripts/production/mount_disk.sh >> $LOG 2>&1
end script

script

# Print PID to PID path
@@ -22,12 +31,8 @@ script
# Source the environment variables needed by Blot
. /etc/blot/environment.sh

# Ensure the cache directory has been mounted to ephemeral instance storage
# exec sudo $BLOT_DIRECTORY/scripts/production/mount_disk.sh >> $LOG 2>&1

# Run the script which starts the Blot service
exec sudo -u $BLOT_USER $BLOT_START

end script

pre-stop script

0 comments on commit 07ff956

Please sign in to comment.
You can’t perform that action at this time.