wmstartup: Add more services, move service logic out of common.bash

This commit is contained in:
2018-08-27 11:51:06 -05:00
parent 188961da25
commit c0b14dba2d
9 changed files with 70 additions and 26 deletions

View File

@@ -10,10 +10,7 @@ source $DTF_SERVICES_DIR/common.bash
service_name="sxhkd"
service_process="sxhkd"
function prestart() {
if ! which $service_process > /dev/null 2>&1; then
svc_log "Could not find process"
fi
function prestart-extra() {
if ! pgrep bspwm > /dev/null 2>&1; then
svc_log "Not under bspwm"
return 1