Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/system-configs/upstart-configs/units/webida-batch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ author "Webida team"
start on startup
stop on shutdown

# Set the priv of scripts
# If this not not set, the Webida server will be run as root and it'll be a disaster.
setuid webida

# This let upstart track the child process of forever.
# Because forever spawns another monitor process and exits, this is required.
expect fork
Expand All @@ -21,7 +17,7 @@ env NODE_ENV='production'
env SCRIPT="unit-manager.js svc=batch0"

script
exec forever --sourceDir "$SERVER_ROOT/$SERVER_DIR" -a -l $LOG --minUptime 5000 --spinSleepTime 2000 start $SCRIPT
exec forever --sourceDir "$WEBIDA_HOME/$SERVER_DIR" -a -l $LOG --minUptime 5000 --spinSleepTime 2000 start $SCRIPT
end script

pre-stop script
Expand Down
2 changes: 1 addition & 1 deletion src/system-configs/upstart-configs/units/webida-proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env NODE_ENV='production'
env SCRIPT="unit-manager.js svc=proxy0"

script
exec forever --sourceDir "$SERVER_ROOT/$SERVER_DIR" -a -l $LOG --minUptime 5000 --spinSleepTime 2000 start $SCRIPT
exec forever --sourceDir "$WEBIDA_HOME/$SERVER_DIR" -a -l $LOG --minUptime 5000 --spinSleepTime 2000 start $SCRIPT
end script

pre-stop script
Expand Down