also search for services in a package dir

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2017-12-08 15:16:03 +03:00
parent 253fd1f094
commit 34a43d4db6

4
ssm
View File

@ -342,6 +342,8 @@ main() {
# Let's set some defaults
service_managed=1
usrdir='/usr/share/ssm'
if (( $UID )); then
# XDG stuff
default XDG_CONFIG_HOME "$HOME/.config"
@ -356,7 +358,7 @@ main() {
logdir='/var/log/ssm'
fi
service_path+=( "$cfgdir/init.d" "$rundir/services" )
service_path+=( "$cfgdir/init.d" "$rundir/services" "$usrdir/services" )
# Load custom functions
for f in "$cfgdir/functions"/*; do