init.d -> services

Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
Jack L. Frost 2017-12-10 19:27:51 +03:00
parent 587ed04903
commit d9f22bf634
2 changed files with 2 additions and 3 deletions

View File

@ -7,4 +7,3 @@ Services
--------
A service is a script in the ssm's init.d directory.
By default it's /etc/ssm/init.d for system services and $XDG_CONFIG_HOME/ssm/init.d for user ones.
ssm creates relevant dirs if they don't exist.

4
ssm
View File

@ -349,7 +349,7 @@ main() {
default XDG_CONFIG_HOME "$HOME/.config"
default XDG_RUNTIME_DIR "/run/user/$UID"
service_path=( "$XDG_CONFIG_HOME/ssm/init.d" )
service_path=( "$XDG_CONFIG_HOME/ssm/services" )
cfg_path=( "$XDG_CONFIG_HOME/ssm" )
rundir="$XDG_RUNTIME_DIR/ssm"
@ -360,7 +360,7 @@ main() {
fi
# Common service path
service_path+=( '/etc/ssm/init.d' "$rundir/services" "$usrdir/services" )
service_path+=( '/etc/ssm/services' "$rundir/services" "$usrdir/services" )
# Common config path
cfg_path+=( '/etc/ssm/conf.d' )