Commit 2abdacbc authored by Paul Desplanque's avatar Paul Desplanque

Not ready for being part of system - let's work inside working copy for now

parent 40d89f61
......@@ -2,3 +2,4 @@ apache-logs/
certbot-logs/
vhosts/
certs/
laststart.var
#!/bin/bash
SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APP_NAME=$(basename "$SELF_DIR")
APP_VARFILE="/var/slarp"
APP_VARFILE="$SELF_DIR/laststart.var"
function abort_varfile {
echo "Error: $APP_VARFILE absent or corrupted - please restart $APP_NAME" >&2
......
#!/bin/bash
SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
APP_NAME=$(basename "$SELF_DIR")
APP_VARFILE="/var/slarp"
APP_VARFILE="$SELF_DIR/laststart.var"
[ $(. "$SELF_DIR"/is-running) == "no" ] || {
echo "$APP_NAME is already running"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment