* Fix for crash due to SIGALRM on OpenBSD.
* Fixes for compiling with Musl C library.
* Fix dinitctl "enable" and "disable" commands when path to service directory is absolute.
+ * "termsignal" setting renamed "term-signal" and now supports "KILL" signal. "termsignal"
+ is still supported for compatibility with existing service descriptions.
* Other minor fixes.
== Version 0.5.0:
Specifies the group of the activation socket. See discussion of
\fBsocket\-uid\fR.
.TP
-\fBtermsignal\fR = {HUP | INT | QUIT | USR1 | USR2}
+\fBterm\-signal\fR = {HUP | INT | QUIT | USR1 | USR2 | KILL}
Specifies an additional signal to send to the process when requesting it
to terminate (applies to 'process' services only). SIGTERM is always
-sent along with the specified signal, unless the \fBnosigterm\fR option is
+sent along with the specified signal, unless the \fBno\-sigterm\fR option is
specified via the \fBoptions\fR parameter.
.TP
-\fBready-notification\fR = {\fBpipefd:\fR\fIfd-number\fR | \fBpipevar:\fR\fIenv-var-name\fR}
+\fBready\-notification\fR = {\fBpipefd:\fR\fIfd-number\fR | \fBpipevar:\fR\fIenv-var-name\fR}
Specifies the mechanism, if any, by which a process service will notify that it is ready
(successfully started). If not specified, a process service is considered started as soon as it
has begun execution. The two options are:
if (signame == "QUIT") return SIGQUIT;
if (signame == "USR1") return SIGUSR1;
if (signame == "USR2") return SIGUSR2;
+ if (signame == "KILL") return SIGKILL;
return -1;
}
}
}
}
- else if (setting == "termsignal") {
+ else if (setting == "term-signal" || setting == "termsignal") {
+ // Note: "termsignal" supported for legacy reasons.
string signame = read_setting_value(i, end, nullptr);
int signo = signal_name_to_number(signame);
if (signo == -1) {