Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
6f2db37dff | |||
842662f3d5 |
16
ssm
16
ssm
@@ -280,6 +280,7 @@ info() {
|
||||
"$_status_label" "$_status"
|
||||
"Exec" "${service_command[*]} ${service_args[*]}"
|
||||
"Respawn" "${service_respawn:-false}"
|
||||
"Config path" "${service_config}"
|
||||
)
|
||||
|
||||
[[ "$_status" == 'yes' ]] && {
|
||||
@@ -352,6 +353,15 @@ main() {
|
||||
service_path=( "$XDG_CONFIG_HOME/ssm/services" )
|
||||
cfg_path=( "$XDG_CONFIG_HOME/ssm" )
|
||||
|
||||
# Warn the user of deprecated stuff.
|
||||
if [[ -d "$XDG_CONFIG_HOME/ssm/init.d" ]]; then
|
||||
printf 'WARNING: `%s` was renamed to `%s`! Please move your scripts accordingly!\n' \
|
||||
"$XDG_CONFIG_HOME/ssm/init.d" \
|
||||
"$XDG_CONFIG_HOME/ssm/services" >&2
|
||||
|
||||
service_path+=( "$XDG_CONFIG_HOME/ssm/init.d" )
|
||||
fi
|
||||
|
||||
rundir="$XDG_RUNTIME_DIR/ssm"
|
||||
logdir="$HOME/log/ssm"
|
||||
else
|
||||
@@ -359,6 +369,12 @@ main() {
|
||||
logdir='/var/log/ssm'
|
||||
fi
|
||||
|
||||
# Warn the user of deprecated stuff.
|
||||
if [[ -d "/etc/ssm/init.d" ]]; then
|
||||
printf 'WARNING: `/etc/ssm/init.d` was renamed to `/etc/ssm/services`! Please move your scripts accordingly!\n' >&2
|
||||
service_path+=( "/etc/ssm/init.d" )
|
||||
fi
|
||||
|
||||
# Common service path
|
||||
service_path+=( '/etc/ssm/services' "$rundir/services" "$usrdir/services" )
|
||||
|
||||
|
Reference in New Issue
Block a user