wmstartup: Add tasks frameworking

Because one-off services are kind of hacky
This commit is contained in:
2018-08-27 20:28:58 -05:00
parent 8d17082a6c
commit e96a76e29a
8 changed files with 98 additions and 59 deletions

View File

@@ -0,0 +1,14 @@
#! /usr/bin/env bash
#
# wmstartup service common functions
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
#
# Distributed under terms of the MIT license.
#
# Basic logging service. Do not override unless necessary
function tsk_log() {
if [ -z ${1+x} ]; then return 1; fi
dtf_log "$task: $1"
}