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.
|
|
|
|
#
|
|
|
|
|
|
|
|
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
|
2018-09-27 20:23:15 -05:00
|
|
|
svc_log "Will not start: in a VM" 2
|
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
|
|
|
}
|
|
|
|
|