init.d -> services
Signed-off-by: fbt <fbt@fleshless.org>
This commit is contained in:
parent
587ed04903
commit
d9f22bf634
|
@ -7,4 +7,3 @@ Services
|
||||||
--------
|
--------
|
||||||
A service is a script in the ssm's init.d directory.
|
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.
|
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
4
ssm
|
@ -349,7 +349,7 @@ main() {
|
||||||
default XDG_CONFIG_HOME "$HOME/.config"
|
default XDG_CONFIG_HOME "$HOME/.config"
|
||||||
default XDG_RUNTIME_DIR "/run/user/$UID"
|
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" )
|
cfg_path=( "$XDG_CONFIG_HOME/ssm" )
|
||||||
|
|
||||||
rundir="$XDG_RUNTIME_DIR/ssm"
|
rundir="$XDG_RUNTIME_DIR/ssm"
|
||||||
|
@ -360,7 +360,7 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Common service path
|
# 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
|
# Common config path
|
||||||
cfg_path+=( '/etc/ssm/conf.d' )
|
cfg_path+=( '/etc/ssm/conf.d' )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user