2018-08-26 16:11:25 -05:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Simple wmstartup service
|
|
|
|
# Copyright (C) 2018 salt <salt@lap-th-e560-0>
|
|
|
|
#
|
|
|
|
# Distributed under terms of the MIT license.
|
|
|
|
#
|
|
|
|
|
|
|
|
source $DTF_SERVICES_DIR/common.bash
|
|
|
|
service_name="Compton"
|
|
|
|
service_process="compton"
|
|
|
|
|
2018-08-27 11:51:06 -05:00
|
|
|
function prestart-extra() {
|
2018-08-26 16:11:25 -05:00
|
|
|
if [[ "$HOST" == "vm-*" ]]; then
|
|
|
|
svc_log "Will not start: in a VM"
|
2018-08-27 11:51:06 -05:00
|
|
|
return 1
|
2018-08-26 16:11:25 -05:00
|
|
|
fi
|
2018-08-27 11:51:06 -05:00
|
|
|
return 0
|
2018-08-26 16:11:25 -05:00
|
|
|
}
|
|
|
|
|