From 34a43d4db653d4753e29cf61bc016472be4860ec Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 8 Dec 2017 15:16:03 +0300 Subject: [PATCH] also search for services in a package dir Signed-off-by: fbt --- ssm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ssm b/ssm index 2640f36..343faa9 100755 --- a/ssm +++ b/ssm @@ -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