Skip to content
Snippets Groups Projects
Commit 5227ae9f authored by Hannes Feldt's avatar Hannes Feldt
Browse files

add config

parent dfdf95f0
No related branches found
No related tags found
No related merge requests found
Pipeline #94954 failed
...@@ -18,7 +18,6 @@ DESC="hwtr" ...@@ -18,7 +18,6 @@ DESC="hwtr"
SERVICE=$(basename -- "$0") SERVICE=$(basename -- "$0")
NAME="${SERVICE##*.}" NAME="${SERVICE##*.}"
DAEMON=/usr/bin/pypcc-hwtr DAEMON=/usr/bin/pypcc-hwtr
DAEMON_ARGS=""
PIDFILE=/var/run/$NAME.pid PIDFILE=/var/run/$NAME.pid
echo "$NAME" echo "$NAME"
...@@ -30,7 +29,7 @@ exit ...@@ -30,7 +29,7 @@ exit
[ -x "$DAEMON" ] || exit 0 [ -x "$DAEMON" ] || exit 0
# Read configuration variable file if it is present # Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME [ -r /etc/default/hwtr/$NAME ] && . /etc/default/hwtr/$NAME
# #
# Function that starts the daemon/service # Function that starts the daemon/service
...@@ -47,7 +46,7 @@ do_start() { ...@@ -47,7 +46,7 @@ do_start() {
;; ;;
*) *)
echo "Starting $DESC ..." echo "Starting $DESC ..."
exec $DAEMON $DAEMON_ARGS >/dev/null 2>&1 || status=$? exec $DAEMON -p $HWTR_PORT -c $HWTR_CONFIG $HWTR_ARGS >/dev/null 2>&1 || status=$?
echo "ERROR: Failed to start $DESC." echo "ERROR: Failed to start $DESC."
exit $status exit $status
;; ;;
......
HWTR_PORT="4843"
HWTR_CONFIG="CCDTR"
HWTR_ARGS=""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment