#!/bin/bash

MIKBILL_PID="/var/run/mikbill.pid"
MIKBILL_OWNER="mikbill"
APP_RM=$(which rm)
APP_TOUCH=$(which touch)
APP_CHOWN=$(which chown)

if [[ -f $MIKBILL_PID ]]; then
        $APP_RM -f $MIKBILL_PID
fi

$APP_TOUCH $MIKBILL_PID
$APP_CHOWN $MIKBILL_OWNER:$MIKBILL_OWNER $MIKBILL_PID
