Skip to content

Instantly share code, notes, and snippets.

View ovenator's full-sized avatar

Marek Ovčačík ovenator

View GitHub Profile
#!/bin/sh
APP_DIR="$(cd "$(dirname "$0")" && pwd)"
APP_NAME=application
PID_FILE=$APP_DIR/app.pid
start_app() {
echo "Starting $APP_NAME..."
start-stop-daemon --start --chdir $APP_DIR --startas $APP_DIR/start.sh --background --make-pidfile --pidfile $APP_DIR/app.pid
}