diff --git a/examples/ssm.conf b/examples/ssm.conf index 1fe5987..1770d47 100644 --- a/examples/ssm.conf +++ b/examples/ssm.conf @@ -1,11 +1,37 @@ # This is actually a bash script -# Everything in ssm is a bash script. -# Enable cgroup-related functions. -# This requires quite specific setup that is undocumented as of yet, sorry. -#cgroups = 0 +# Where to search for services, works as a PATH-like array. +#service_path = "$XDG_CONFIG_HOME/ssm/services" /etc/ssm/services "$rundir/services" /usr/share/ssm/services -# You can also set service-level options here, as local defaults. -# I really do not advise doing that, but you *can*. -# For example: -#service_workdir = / +# Service defaults +# Respawn the service if it exits +#service_respawn = 0 + +# Working directory +#service_workdir = '/' + +# How long do we wait for the service to stop +#service_stop_timeout = 30 + +# How long do we wait for the service to get ready +#service_ready_timeout = 15 + +# The signal to send to reload the service +#service_reload_signal = 1 + +# The signal to send to stop the service +#service_stop_signal = 15 + +# Enable cgroup-related functions +# Only works with cgroups v2 and a helper. +# Basically, don't. +# +#cgroups = 1 + +# Refuse to start the service if its cgroup is not empty +#service_cgroup_exclusive = 0 + +# Wait on all the members of the cgroup to exit when stopping the service. +#service_cgroup_wait = 0 + +#service_cgroup_strict = 0 diff --git a/ssm b/ssm index def6125..e1897a3 100755 --- a/ssm +++ b/ssm @@ -592,7 +592,6 @@ var service_pid \ service_cgroup_name \ service_cgroup_procs \ service_cgroup_path \ - service_signals_passthru \ service_config_current \ cgroup_home \ failed_deps \ @@ -628,7 +627,6 @@ var service_workdir = '/' var service_stop_timeout = 30 var service_stop_command = kill -n "\$service_stop_signal" "\$job_pid" var service_ready_timeout = 15 -var service_signals = 1 10 12 var service_reload_signal = 1 var service_stop_signal = 15 var service_cgroup_exclusive = 0 # Refuse to start the service if its cgroup is not empty