systemd-ts 261.3.0 → 262.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,26 +12,18 @@ It is designed around a few practical jobs:
12
12
 
13
13
  The library has two layers:
14
14
 
15
- - `systemd.ts.*` is the code-owned upkeep layer for attaching, reattaching, and
16
- detaching application-managed units.
17
- - `systemd.*` stays close to raw `systemd` concepts like materializing units and
18
- starting them directly.
15
+ - `systemd.ts.*` is the code-owned upkeep layer for attaching, reattaching, and detaching application-managed units.
16
+ - `systemd.*` stays close to raw `systemd` concepts like materializing units and starting them directly.
19
17
 
20
- That lets the README start from the application code story without giving up a
21
- lower-level `systemd` surface when you want it.
18
+ That lets the README start from the application code story without giving up a lower-level `systemd` surface when you want it.
22
19
 
23
- It is also a good place to learn `systemd` itself. The unit directives are
24
- deeply typed, documented in the TypeScript surface, and maintained against
25
- versioned upstream manpage material, so the library doubles as a guided way to
26
- explore what `systemd` can do without starting from loose strings and scattered
27
- shell examples.
20
+ It is also a good place to learn `systemd` itself. The unit directives are deeply typed, documented in the TypeScript surface, and maintained against versioned upstream manpage material, so the library doubles as a guided way to explore what `systemd` can do without starting from loose strings and scattered shell examples.
28
21
 
29
22
  ## What It Can Do
30
23
 
31
24
  ### Keep application-owned units up to date
32
25
 
33
- If your application owns a service or timer and wants to keep that unit set up
34
- to date across reinstalls, updates, or reconfiguration, use `systemd.ts`.
26
+ If your application owns a service or timer and wants to keep that unit set up to date across reinstalls, updates, or reconfiguration, use `systemd.ts`.
35
27
 
36
28
  ```ts
37
29
  import { homedir } from "node:os";
@@ -77,10 +69,7 @@ if (!attached.ok) {
77
69
  }
78
70
  ```
79
71
 
80
- This is the highest-level upkeep workflow in the library. It is designed for
81
- desktop apps, self-updating agents, OTA-managed software, and other code-owned
82
- service setups where the application itself is responsible for the unit set it
83
- maintains.
72
+ This is the highest-level upkeep workflow in the library. It is designed for desktop apps, self-updating agents, OTA-managed software, and other code-owned service setups where the application itself is responsible for the unit set it maintains.
84
73
 
85
74
  ### Use `systemctl` from TypeScript
86
75
 
@@ -105,9 +94,7 @@ console.log(timers.value);
105
94
  console.log(status.value);
106
95
  ```
107
96
 
108
- This is a good fit when you already know the units you want to inspect or
109
- control and you want to stay inside TypeScript instead of shelling out from app
110
- code by hand.
97
+ This is a good fit when you already know the units you want to inspect or control and you want to stay inside TypeScript instead of shelling out from app code by hand.
111
98
 
112
99
  ### Define a service from TypeScript
113
100
 
@@ -130,8 +117,7 @@ const service = new SystemdService({
130
117
  });
131
118
  ```
132
119
 
133
- That service can be rendered into a real unit file, materialized into a unit
134
- directory, and then managed through `Systemd` or `Systemctl`.
120
+ That service can be rendered into a real unit file, materialized into a unit directory, and then managed through `Systemd` or `Systemctl`.
135
121
 
136
122
  ### Define a service that runs on a timer
137
123
 
@@ -164,13 +150,11 @@ const timer = new SystemdTimer({
164
150
  });
165
151
  ```
166
152
 
167
- This gives you a real `.service` plus a real `.timer`, both defined from the
168
- same TypeScript module.
153
+ This gives you a real `.service` plus a real `.timer`, both defined from the same TypeScript module.
169
154
 
170
155
  ### Keep the executable close to the unit definitions
171
156
 
172
- For many projects, the nicest workflow is to colocate the job entrypoint with
173
- the service and timer that run it.
157
+ For many projects, the nicest workflow is to colocate the job entrypoint with the service and timer that run it.
174
158
 
175
159
  `defineExecutable()` is designed for that pattern:
176
160
 
@@ -208,8 +192,7 @@ const timer = new SystemdTimer({
208
192
  });
209
193
  ```
210
194
 
211
- That keeps the scheduled code, the service definition, and the timer definition
212
- near each other instead of scattering them across shell scripts and unit files.
195
+ That keeps the scheduled code, the service definition, and the timer definition near each other instead of scattering them across shell scripts and unit files.
213
196
 
214
197
  ## A Typical Flow
215
198
 
@@ -266,8 +249,7 @@ if (!reattached.ok) {
266
249
 
267
250
  ### Using The `Systemd` API Directly
268
251
 
269
- If you want to stay closer to raw `systemd` operations, use the lower-level
270
- `Systemd` methods directly:
252
+ If you want to stay closer to raw `systemd` operations, use the lower-level `Systemd` methods directly:
271
253
 
272
254
  ```ts
273
255
  import { homedir } from "node:os";
@@ -318,18 +300,13 @@ if (!started.ok) {
318
300
  }
319
301
  ```
320
302
 
321
- This lower-level flow is useful when you want exact control over
322
- materialization, enablement, or startup behavior without going through the
323
- code-owned upkeep layer.
303
+ This lower-level flow is useful when you want exact control over materialization, enablement, or startup behavior without going through the code-owned upkeep layer.
324
304
 
325
305
  ## Testing Against A Real User Manager
326
306
 
327
- The package also ships a `systemd-ts/test` module for integration tests that
328
- need a real `systemd --user` environment.
307
+ The package also ships a `systemd-ts/test` module for integration tests that need a real `systemd --user` environment.
329
308
 
330
- Use `ensureTestHost()` to warm the test host, `createTestSandbox()` to create
331
- an isolated unit directory, and `sandboxSystemd()` when you want a `Systemd`
332
- instance already pointed at that sandbox.
309
+ Use `ensureTestHost()` to warm the test host, `createTestSandbox()` to create an isolated unit directory, and `sandboxSystemd()` when you want a `Systemd` instance already pointed at that sandbox.
333
310
 
334
311
  ```ts
335
312
  import { afterEach, beforeAll, beforeEach, test } from "vitest";
@@ -379,16 +356,13 @@ test(`starts a service in a sandbox`, async () => {
379
356
  });
380
357
  ```
381
358
 
382
- If you need direct executor access for helpers outside `Systemd`, the same
383
- module also exports `guestCommandExecutor`, `isolatedGuestCommandExecutor`, and
384
- `createGuestCommandExecutor()`.
359
+ If you need direct executor access for helpers outside `Systemd`, the same module also exports `guestCommandExecutor`, `isolatedGuestCommandExecutor`, and `createGuestCommandExecutor()`.
385
360
 
386
361
  ## Explore Further
387
362
 
388
363
  The README is meant to answer what the library is for.
389
364
 
390
- If you want the exact method surface, result types, or lower-level details, the
391
- next places to look are:
365
+ If you want the exact method surface, result types, or lower-level details, the next places to look are:
392
366
 
393
367
  - `Systemctl` for direct `systemctl` usage from TypeScript
394
368
  - `Systemd` for materialization plus unit lifecycle workflows
@@ -203,6 +203,7 @@ type PressureWatchDirectiveValue = boolean | "auto" | "skip";
203
203
  type StandardInputDirectiveValue = "null" | "tty" | "tty-force" | "tty-fail" | "data" | "socket" | "fd" | `file:${string}` | `fd:${string}`;
204
204
  type StandardOutputDirectiveValue = "inherit" | "null" | "tty" | "journal" | "kmsg" | "journal+console" | "kmsg+console" | "socket" | "fd" | `file:${string}` | `append:${string}` | `truncate:${string}` | `fd:${string}`;
205
205
  type StandardErrorDirectiveValue = StandardOutputDirectiveValue | "inherit";
206
+ /** Command lines for `Exec*=` directives. A `+` executable prefix bypasses per-command privilege restrictions and `Limit*=` settings, including manager-configured defaults; the command inherits the service manager's resource limits. Controls applying to the whole cgroup still apply. Source: systemd v262.1, `systemd.service(5)`. */
206
207
  type ExecDirective = string | Executable | readonly (string | Executable)[];
207
208
  type UnitValue = string | number | boolean | Executable;
208
209
  type UnitValueList = readonly UnitValue[];
@@ -213,10 +214,11 @@ interface CustomDirectiveSection {
213
214
  /**
214
215
  * Generic unit-level directives shared by service and timer units.
215
216
  *
216
- * References in this file are grounded in cached upstream systemd v260.1 manpages.
217
+ * References in this file are grounded in cached upstream systemd manpages,
218
+ * reviewed through v262.1. Individual directives identify their documentation source.
217
219
  *
218
220
  * Sources:
219
- * - systemd v260.1, `systemd.unit(5)`
221
+ * - systemd v262, `systemd.unit(5)`
220
222
  */
221
223
  interface SystemdUnitSection extends CustomDirectiveSection {
222
224
  /** Units that should be ordered before this unit starts. Source: systemd v260.1, `systemd.unit(5)`. */
@@ -227,7 +229,7 @@ interface SystemdUnitSection extends CustomDirectiveSection {
227
229
  readonly AssertACPower?: boolean | readonly boolean[];
228
230
  /** Assertion form of `ConditionArchitecture=`. Check whether the system is running on a specific architecture. Takes one of x86, x86-64, ppc, ppc-le, ppc64, ppc64-le, ia64, parisc, parisc64, s390, s390x, sparc, sparc64, mips, mips-le, mips64, mips64-le, alpha, arm, arm-be, arm64, arm64-be, sh, sh64, m68k, tilegx, cris, arc, arc-be, or native. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
229
231
  readonly AssertArchitecture?: string | readonly string[];
230
- /** Assertion form of `ConditionCPUFeature=`. Verify that a given CPU feature is available via the CPUID instruction. This condition only does something on i386 and x86-64 processors. On other processors it is assumed that the CPU does not support the given feature. It checks the leaves 1, 7, 0x80000001, and 0x80000007. Valid values are: fpu, vme, de, pse, tsc, msr, pae, mce, cx8, apic, sep, mtrr, pge, mca, cmov, pat, pse36, clflush, mmx, fxsr, sse, sse2, ht, pni, pclmul, monitor, ssse3, fma3, cx16, sse4_1, sse4_2, movbe, popcnt, aes, xsave, osxsave, avx, f16c, rdrand, bmi1, avx2, bmi2, rdseed, adx, sha_ni, syscall, rdtscp, lm, lahf_lm, abm, constant_tsc. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
232
+ /** Assertion form of `ConditionCPUFeature=`. Checks CPU features via CPUID on i386 and x86-64, or ELF hardware capabilities on arm64. Accepts architecture-qualified names such as `arm64.bti`; a mismatched architecture prefix evaluates to false. On other architectures, features are assumed unsupported. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v262, `systemd.unit(5)`. */
231
233
  readonly AssertCPUFeature?: string | readonly string[];
232
234
  /** Assertion form of `ConditionCPUPressure=`. Verify that the overall system (memory, CPU or IO) pressure is below or equal to a threshold. This setting takes a threshold value as argument. It can be specified as a simple percentage value, suffixed with %, in which case the pressure will be measured as an average over the last five minutes before the attempt to start the unit is performed. Alternatively, the average timespan can also be specified using / as a separator, for example: 10%/1min. The supported timespans match what the kernel provides, and are limited to 10sec, 1min and 5min. The full PSI will be checked first, and if not found some will be checked. For more details, see the documentation on PSI (Pressure Stall Information) . Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
233
235
  readonly AssertCPUPressure?: string | readonly string[];
@@ -263,7 +265,7 @@ interface SystemdUnitSection extends CustomDirectiveSection {
263
265
  readonly AssertKernelModuleLoaded?: string | readonly string[];
264
266
  /** Assertion form of `ConditionKernelVersion=`. May be used to check whether the kernel version (as reported by uname -r) matches a certain expression, or if prefixed with the exclamation mark, does not match. The argument must be a list of (potentially quoted) expressions. Each expression starts with one of = or != for string comparisons, <, <=, ==, <>, >=, > for version comparisons, or $=, !$= for a shell-style glob match. If no operator is specified, $= is implied. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
265
267
  readonly AssertKernelVersion?: string | readonly string[];
266
- /** Assertion form of `ConditionMachineTag=`. Matches machine tags configured in `machine-info(5)`. Source: systemd v261, `systemd.unit(5)`. */
268
+ /** Assertion form of `ConditionMachineTag=`. Matches machine tags using shell-style patterns, optionally negated with `!`. Parameterized tags include their value in the match: `role=web` matches exactly, `role=*` matches any value for that key, and `role` does not match `role=web`. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v262, `systemd.unit(5)`. */
267
269
  readonly AssertMachineTag?: string | readonly string[];
268
270
  /** Assertion form of `ConditionMemory=`. Verify that the specified amount of system memory is available to the current system. Takes a memory size in bytes as argument, optionally prefixed with a comparison operator <, <=, = (or ==), != (or <>), >=, >. On bare-metal systems compares the amount of physical memory in the system with the specified size, adhering to the specified comparison operator. In containers compares the amount of memory assigned to the container instead. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
269
271
  readonly AssertMemory?: number | string | readonly (number | string)[];
@@ -273,7 +275,7 @@ interface SystemdUnitSection extends CustomDirectiveSection {
273
275
  readonly AssertNeedsUpdate?: string | readonly string[];
274
276
  /** Assertion form of `ConditionOSRelease=`. Verify that a specific key=value pair is set in the host's os-release5. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
275
277
  readonly AssertOSRelease?: string | readonly string[];
276
- /** Assertion form of `ConditionPathExists=`. Check for the existence of a file. If the specified absolute path name does not exist, the condition will fail. If the absolute path name passed to ConditionPathExists= is prefixed with an exclamation mark (!), the test is negated, and the unit is only started if the path does not exist. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
278
+ /** Assertion form of `ConditionPathExists=`. Checks for any file system object at an absolute path, including directories, device nodes, FIFOs, and sockets. Symbolic links are followed, so broken symbolic links do not count as existing. Prefix the path with `!` to require its absence. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v262, `systemd.unit(5)`. */
277
279
  readonly AssertPathExists?: string | readonly string[];
278
280
  /** Assertion form of `ConditionPathExistsGlob=`. Similar to `ConditionPathExists=`, but checks for the existence of at least one file or directory matching the specified globbing pattern. Unlike conditions, a mismatch fails the start job instead of skipping it. Source: systemd v260.1, `systemd.unit(5)`. */
279
281
  readonly AssertPathExistsGlob?: string | readonly string[];
@@ -307,7 +309,7 @@ interface SystemdUnitSection extends CustomDirectiveSection {
307
309
  readonly ConditionACPower?: boolean | readonly boolean[];
308
310
  /** Check whether the system is running on a specific architecture. Takes one of x86, x86-64, ppc, ppc-le, ppc64, ppc64-le, ia64, parisc, parisc64, s390, s390x, sparc, sparc64, mips, mips-le, mips64, mips64-le, alpha, arm, arm-be, arm64, arm64-be, sh, sh64, m68k, tilegx, cris, arc, arc-be, or native. Source: systemd v260.1, `systemd.unit(5)`. */
309
311
  readonly ConditionArchitecture?: string | readonly string[];
310
- /** Verify that a given CPU feature is available via the CPUID instruction. This condition only does something on i386 and x86-64 processors. On other processors it is assumed that the CPU does not support the given feature. It checks the leaves 1, 7, 0x80000001, and 0x80000007. Valid values are: fpu, vme, de, pse, tsc, msr, pae, mce, cx8, apic, sep, mtrr, pge, mca, cmov, pat, pse36, clflush, mmx, fxsr, sse, sse2, ht, pni, pclmul, monitor, ssse3, fma3, cx16, sse4_1, sse4_2, movbe, popcnt, aes, xsave, osxsave, avx, f16c, rdrand, bmi1, avx2, bmi2, rdseed, adx, sha_ni, syscall, rdtscp, lm, lahf_lm, abm, constant_tsc. Source: systemd v260.1, `systemd.unit(5)`. */
312
+ /** Checks CPU features via CPUID on i386 and x86-64, or ELF hardware capabilities on arm64. Accepts architecture-qualified names such as `arm64.bti`; a mismatched architecture prefix evaluates to false. On other architectures, features are assumed unsupported. Source: systemd v262, `systemd.unit(5)`. */
311
313
  readonly ConditionCPUFeature?: string | readonly string[];
312
314
  /** Verify that the overall system (memory, CPU or IO) pressure is below or equal to a threshold. This setting takes a threshold value as argument. It can be specified as a simple percentage value, suffixed with %, in which case the pressure will be measured as an average over the last five minutes before the attempt to start the unit is performed. Alternatively, the average timespan can also be specified using / as a separator, for example: 10%/1min. The supported timespans match what the kernel provides, and are limited to 10sec, 1min and 5min. The full PSI will be checked first, and if not found some will be checked. For more details, see the documentation on PSI (Pressure Stall Information) . Source: systemd v260.1, `systemd.unit(5)`. */
313
315
  readonly ConditionCPUPressure?: string | readonly string[];
@@ -345,7 +347,7 @@ interface SystemdUnitSection extends CustomDirectiveSection {
345
347
  readonly ConditionKernelModuleLoaded?: string | readonly string[];
346
348
  /** May be used to check whether the kernel version (as reported by uname -r) matches a certain expression, or if prefixed with the exclamation mark, does not match. The argument must be a list of (potentially quoted) expressions. Each expression starts with one of = or != for string comparisons, <, <=, ==, <>, >=, > for version comparisons, or $=, !$= for a shell-style glob match. If no operator is specified, $= is implied. Source: systemd v260.1, `systemd.unit(5)`. */
347
349
  readonly ConditionKernelVersion?: string | readonly string[];
348
- /** Matches machine tags configured in `machine-info(5)`. Source: systemd v261, `systemd.unit(5)`. */
350
+ /** Matches machine tags from `machine-info(5)` using shell-style patterns, optionally negated with `!`. Parameterized tags include their value in the match: `role=web` matches exactly, `role=*` matches any value for that key, and `role` does not match `role=web`. Source: systemd v262, `systemd.unit(5)`. */
349
351
  readonly ConditionMachineTag?: string | readonly string[];
350
352
  /** Verify that the specified amount of system memory is available to the current system. Takes a memory size in bytes as argument, optionally prefixed with a comparison operator <, <=, = (or ==), != (or <>), >=, >. On bare-metal systems compares the amount of physical memory in the system with the specified size, adhering to the specified comparison operator. In containers compares the amount of memory assigned to the container instead. Source: systemd v260.1, `systemd.unit(5)`. */
351
353
  readonly ConditionMemory?: number | string | readonly (number | string)[];
@@ -355,7 +357,7 @@ interface SystemdUnitSection extends CustomDirectiveSection {
355
357
  readonly ConditionNeedsUpdate?: string | readonly string[];
356
358
  /** Verify that a specific key=value pair is set in the host's os-release5. Source: systemd v260.1, `systemd.unit(5)`. */
357
359
  readonly ConditionOSRelease?: string | readonly string[];
358
- /** Check for the existence of a file. If the specified absolute path name does not exist, the condition will fail. If the absolute path name passed to ConditionPathExists= is prefixed with an exclamation mark (!), the test is negated, and the unit is only started if the path does not exist. Source: systemd v260.1, `systemd.unit(5)`. */
360
+ /** Checks for any file system object at an absolute path, including directories, device nodes, FIFOs, and sockets. Symbolic links are followed, so broken symbolic links do not count as existing. Prefix the path with `!` to require its absence. Source: systemd v262, `systemd.unit(5)`. */
359
361
  readonly ConditionPathExists?: string | readonly string[];
360
362
  /** Similar to `ConditionPathExists=`, but checks for the existence of at least one file or directory matching the specified globbing pattern. Source: systemd v260.1, `systemd.unit(5)`. */
361
363
  readonly ConditionPathExistsGlob?: string | readonly string[];
@@ -437,7 +439,7 @@ interface SystemdUnitSection extends CustomDirectiveSection {
437
439
  readonly StartLimitAction?: UnitActionDirectiveValue;
438
440
  /** See systemd.unit(5) for StartLimitBurst=. Source: systemd v260.1, `systemd.unit(5)`. */
439
441
  readonly StartLimitBurst?: number;
440
- /** Configure unit start rate limiting. Units which are started more than burst times within an interval time span are not permitted to start any more. Use StartLimitIntervalSec= to configure the checking interval and StartLimitBurst= to configure how many starts per interval are allowed. Source: systemd v260.1, `systemd.unit(5)`. */
442
+ /** Configure unit start rate limiting. Units which are started more than burst times within an interval time span are not permitted to start any more. Use StartLimitIntervalSec= to configure the checking interval and StartLimitBurst= to configure how many starts per interval are allowed. Since systemd v262, time spent suspended counts toward the interval. Sources: systemd v262, `systemd.unit(5)` and `NEWS`. */
441
443
  readonly StartLimitIntervalSec?: number | string;
442
444
  /** Units whose stop requests should also stop this unit. Source: systemd v260.1, `systemd.unit(5)`. */
443
445
  readonly StopPropagatedFrom?: string | readonly string[];
@@ -524,7 +526,7 @@ interface SystemdTimerSection extends CustomDirectiveSection {
524
526
  *
525
527
  * This interface includes directives from `systemd.service(5)`,
526
528
  * `systemd.exec(5)`, `systemd.kill(5)`, and
527
- * `systemd.resource-control(5)` as of systemd v260.1.
529
+ * `systemd.resource-control(5)`, reviewed through systemd v262.1.
528
530
  */
529
531
  interface SystemdServiceSection extends CustomDirectiveSection {
530
532
  /** This setting controls the cpuset controller in the unified hierarchy. Source: systemd v260.1, `systemd.resource-control(5)`. */
@@ -697,37 +699,37 @@ interface SystemdServiceSection extends CustomDirectiveSection {
697
699
  readonly KillMode?: "control-group" | "mixed" | "process" | "none";
698
700
  /** Specifies which signal to use when stopping a service. This controls the signal that is sent as first step of shutting down a unit (see above), and is usually followed by SIGKILL (see above and below). For a list of valid signals, see signal(7). Defaults to SIGTERM. Source: systemd v260.1, `systemd.kill(5)`. */
699
701
  readonly KillSignal?: NodeJS.Signals | number;
700
- /** Maximum address-space size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
702
+ /** Maximum address-space size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
701
703
  readonly LimitAS?: ProcessResourceLimitDirectiveValue;
702
- /** Maximum core-file size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
704
+ /** Maximum core-file size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
703
705
  readonly LimitCORE?: ProcessResourceLimitDirectiveValue;
704
- /** Maximum CPU time for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
706
+ /** Maximum CPU time for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
705
707
  readonly LimitCPU?: ProcessResourceLimitDirectiveValue;
706
- /** Maximum data-segment size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
708
+ /** Maximum data-segment size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
707
709
  readonly LimitDATA?: ProcessResourceLimitDirectiveValue;
708
- /** Maximum created-file size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
710
+ /** Maximum created-file size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
709
711
  readonly LimitFSIZE?: ProcessResourceLimitDirectiveValue;
710
- /** Maximum number of file locks for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
712
+ /** Maximum number of file locks for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
711
713
  readonly LimitLOCKS?: ProcessResourceLimitDirectiveValue;
712
- /** Maximum locked-in-memory size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
714
+ /** Maximum locked-in-memory size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
713
715
  readonly LimitMEMLOCK?: ProcessResourceLimitDirectiveValue;
714
- /** Maximum POSIX message-queue size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
716
+ /** Maximum POSIX message-queue size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
715
717
  readonly LimitMSGQUEUE?: ProcessResourceLimitDirectiveValue;
716
- /** Maximum nice-priority adjustment for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
718
+ /** Maximum nice-priority adjustment for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
717
719
  readonly LimitNICE?: ProcessResourceLimitDirectiveValue;
718
- /** Maximum number of open file descriptors for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
720
+ /** Maximum number of open file descriptors for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
719
721
  readonly LimitNOFILE?: ProcessResourceLimitDirectiveValue;
720
- /** Maximum number of processes or threads for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
722
+ /** Maximum number of processes or threads for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
721
723
  readonly LimitNPROC?: ProcessResourceLimitDirectiveValue;
722
- /** Maximum resident-set size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
724
+ /** Maximum resident-set size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
723
725
  readonly LimitRSS?: ProcessResourceLimitDirectiveValue;
724
- /** Maximum real-time scheduling priority for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
726
+ /** Maximum real-time scheduling priority for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
725
727
  readonly LimitRTPRIO?: ProcessResourceLimitDirectiveValue;
726
- /** Maximum real-time CPU time for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
728
+ /** Maximum real-time CPU time for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
727
729
  readonly LimitRTTIME?: ProcessResourceLimitDirectiveValue;
728
- /** Maximum number of queued signals for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
730
+ /** Maximum number of queued signals for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
729
731
  readonly LimitSIGPENDING?: ProcessResourceLimitDirectiveValue;
730
- /** Maximum stack size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Source: systemd v260.1, `systemd.exec(5)`. */
732
+ /** Maximum stack size for processes started by the unit. Accepts the usual `soft:hard` syntax, `infinity`, and unit suffixes where systemd allows them. Commands prefixed with `+` bypass this setting and its configured default, inheriting the service manager's resource limits instead. Source: systemd v262.1, `systemd.exec(5)`. */
731
733
  readonly LimitSTACK?: ProcessResourceLimitDirectiveValue;
732
734
  /** Pass a credential to the unit. Credentials are limited-size binary or textual objects that may be passed to unit processes. They are primarily intended for passing cryptographic keys (both public and private) or certificates, user account information or identity information from host to services, but can be freely used to pass any kind of limited-size information to a service. The data is accessible from the unit's processes via the file system, at a read-only location that (if possible and permitted) is backed by non-swappable memory. The data is only accessible to the user associated with the unit, via the User=/DynamicUser= settings (as well as the superuser). When available, the location of credentials is exported as the $CREDENTIALS_DIRECTORY environment variable to the unit's processes. Source: systemd v260.1, `systemd.exec(5)`. */
733
735
  readonly LoadCredential?: string | readonly string[];
@@ -755,6 +757,8 @@ interface SystemdServiceSection extends CustomDirectiveSection {
755
757
  readonly LogsDirectoryMode?: string;
756
758
  /** Storage quota for directories created by `LogsDirectory=`. Source: systemd v260.1, `systemd.exec(5)`. */
757
759
  readonly LogsDirectoryQuota?: number | string;
760
+ /** Creates named Live Update Orchestrator (LUO) sessions and passes their file descriptors through the service's file descriptor store. Takes whitespace-separated names; repeated assignments are combined, and an empty string resets the list. Implies `FileDescriptorStoreMax=` is at least the number of sessions. Use `FileDescriptorStorePreserve=true` to preserve them across kexec. Existing sessions with the same name are reused. If `/dev/liveupdate` is unavailable, the service starts normally without sessions. Only supported by the system service manager. Source: systemd v262, `systemd.service(5)`. */
761
+ readonly LUOSession?: string | readonly string[];
758
762
  /** See systemd.service(5) for ManagedOOMMemoryPressure=. Source: systemd v260.1, `systemd.service(5)`. */
759
763
  readonly ManagedOOMMemoryPressure?: ManagedOOMDirectiveValue;
760
764
  /** Overrides the default memory pressure duration set by oomd.conf5 for the cgroup of this unit. The specified value supports a time unit such as ms or μs, see systemd.time(7) for details on the permitted syntax. Must be set to either empty or a value of at least 1s. Defaults to empty, which means to use the default set by oomd.conf5. This property is ignored unless ManagedOOMMemoryPressure=kill. Source: systemd v260.1, `systemd.resource-control(5)`. */
@@ -803,7 +807,7 @@ interface SystemdServiceSection extends CustomDirectiveSection {
803
807
  readonly NFTSet?: string | readonly string[];
804
808
  /** Controls the NUMA node list which will be applied alongside with selected NUMA policy. Takes a list of NUMA nodes and has the same syntax as a list of CPUs for CPUAffinity= option or special "all" value which will include all available NUMA nodes in the mask. Note that the list of NUMA nodes is not required for default and local policies and for preferred policy we expect a single NUMA node. Source: systemd v260.1, `systemd.exec(5)`. */
805
809
  readonly NUMAMask?: string | readonly string[];
806
- /** Controls the NUMA memory policy of the executed processes. Takes a policy type, one of: default, preferred, bind, interleave and local. A list of NUMA nodes that should be associated with the policy must be specified in NUMAMask=. For more details on each policy please see, set_mempolicy(2). For overall overview of NUMA support in Linux see, numa(7). Source: systemd v260.1, `systemd.exec(5)`. */
810
+ /** Controls the NUMA memory policy: `default`, `preferred`, `bind`, `interleave`, `local`, `preferred-many` (Linux 5.15 or newer), or `weighted-interleave` (Linux 6.9 or newer). Configure associated nodes with `NUMAMask=` and weighted-interleave weights through `/sys/kernel/mm/mempolicy/weighted_interleave/`. Unsupported kernel policies log a warning and are ignored. Source: systemd v262, `systemd.exec(5)`. */
807
811
  readonly NUMAPolicy?: string | readonly string[];
808
812
  /** Takes an absolute file system path referring to a Linux network namespace pseudo-file (i.e. a file like /proc/$PID/ns/net or a bind mount or symlink to one). When set the invoked processes are added to the network namespace referenced by that path. The path has to point to a valid namespace file at the moment the processes are forked off. If this option is used PrivateNetwork= has no effect. If this option is used together with JoinsNamespaceOf= then it only has an effect if this unit is started before any of the listed units that have PrivateNetwork= or NetworkNamespacePath= configured, as otherwise the network namespace of those units is reused. Source: systemd v260.1, `systemd.exec(5)`. */
809
813
  readonly NetworkNamespacePath?: string;
@@ -875,7 +879,7 @@ interface SystemdServiceSection extends CustomDirectiveSection {
875
879
  readonly ReadWritePaths?: string | readonly string[];
876
880
  /** Supports either booleans or a space-separated list of refreshable resource kinds such as `extensions` and `credentials`. Source: systemd v260.1, `systemd.service(5)`. */
877
881
  readonly RefreshOnReload?: boolean | string;
878
- /** Configures the UNIX process signal to send to the service's main process when asked to reload the service's configuration. Defaults to SIGHUP. This option has no effect unless Type=notify-reload is used, see above. Source: systemd v260.1, `systemd.service(5)`. */
882
+ /** Selects the signal sent to the main process to reload a `Type=notify-reload` service. Defaults to SIGHUP and has no effect for other service types. The main process must catch or block this signal before its initial `READY=1` notification, or startup fails. The handler is checked again before reloading; a missing handler then causes a warning, but the signal is still sent. Source: systemd v262, `systemd.service(5)`. */
879
883
  readonly ReloadSignal?: NodeJS.Signals | number;
880
884
  /** Takes a boolean value that specifies whether the service shall be considered active even when all its processes exited. Defaults to no. Source: systemd v260.1, `systemd.service(5)`. */
881
885
  readonly RemainAfterExit?: boolean;
@@ -893,6 +897,8 @@ interface SystemdServiceSection extends CustomDirectiveSection {
893
897
  readonly RestartMode?: ServiceRestartModeDirectiveValue;
894
898
  /** Takes a list of exit status definitions that, when returned by the main service process, will prevent automatic service restarts, regardless of the restart setting configured with Restart=. Exit status definitions can be numeric termination statuses, termination status names, or termination signal names, separated by spaces. Defaults to the empty list, so that, by default, no exit status is excluded from the configured restart logic. A service with the RestartPreventExitStatus= setting RestartPreventExitStatus=TEMPFAIL 250 SIGKILL Exit status 75 (TEMPFAIL), 250, and the termination signal SIGKILL will not result in automatic service restarting. This option may appear more than once, in which case the list of restart-preventing statuses is merged. If the empty string is assigned to this option, the list is reset and all prior assignments of this option will have no effect. Source: systemd v260.1, `systemd.service(5)`. */
895
899
  readonly RestartPreventExitStatus?: string | number | readonly (string | number)[];
900
+ /** Adds a uniformly distributed random delay between zero and this duration to automatic restarts, on top of `RestartSec=` and any exponential backoff configured by `RestartSteps=`/`RestartMaxDelaySec=`. Accepts seconds or a time span string. Defaults to 0, disabling the extra delay. Source: systemd v262, `systemd.service(5)`. */
901
+ readonly RestartRandomizedDelaySec?: number | string;
896
902
  /** Configures the time to sleep before restarting a service (as configured with Restart=). Takes a unit-less value in seconds, or a time span value such as "5min 20s". Defaults to 100ms. Source: systemd v260.1, `systemd.service(5)`. */
897
903
  readonly RestartSec?: number | string;
898
904
  /** Configures the number of exponential steps to take to increase the interval of auto-restarts from RestartSec= to RestartMaxDelaySec=. Takes a positive integer or 0 to disable it. Defaults to 0. Hint: values between 3 and 5 are good choices when exponential backoff is desired. Source: systemd v260.1, `systemd.service(5)`. */
@@ -905,7 +911,7 @@ interface SystemdServiceSection extends CustomDirectiveSection {
905
911
  readonly RestrictNamespaces?: boolean | string | readonly string[];
906
912
  /** Takes a list of space-separated network interface names. This option restricts the network interfaces that processes of this unit can use. By default, processes can only use the network interfaces listed (allow-list). If the first character of the rule is ~, the effect is inverted: the processes can only use network interfaces not listed (deny-list). Source: systemd v260.1, `systemd.resource-control(5)`. */
907
913
  readonly RestrictNetworkInterfaces?: string | readonly string[];
908
- /** If set, any attempts to enable realtime scheduling in a process of the unit are refused. This restricts access to realtime task scheduling policies such as SCHED_FIFO, SCHED_RR or SCHED_DEADLINE. See sched7 for details about these scheduling policies. Realtime scheduling policies may be used to monopolize CPU time for longer periods of time, and may hence be used to lock up or otherwise trigger Denial-of-Service situations on the system. It is hence recommended to restrict access to realtime scheduling to the few programs that actually require them. Defaults to off. Source: systemd v260.1, `systemd.exec(5)`. */
914
+ /** If set, any attempts to enable realtime scheduling in a process of the unit are refused. This restricts access to realtime task scheduling policies such as SCHED_FIFO, SCHED_RR or SCHED_DEADLINE. See sched7 for details about these scheduling policies. Realtime scheduling policies may be used to monopolize CPU time for longer periods of time, and may hence be used to lock up or otherwise trigger Denial-of-Service situations on the system. It is hence recommended to restrict access to realtime scheduling to the few programs that actually require them. The system call filter cannot inspect the scheduling policy passed to `sched_setattr()`, so that call is blocked entirely, including for non-realtime uses. Defaults to off. Source: systemd v262.1, `systemd.exec(5)`. */
909
915
  readonly RestrictRealtime?: boolean;
910
916
  /** If set, any attempts to set the set-user-ID (SUID) or set-group-ID (SGID) bits on files or directories will be denied (for details on these bits see inode7). As the SUID/SGID bits are mechanisms to elevate privileges, and allow users to acquire the identity of other users, it is recommended to restrict creation of SUID/SGID files to the few programs that actually require them. Note that this restricts marking of any type of file system object with these bits, including both regular files and directories (where the SGID is a different meaning than for files, see documentation). This option is implied if DynamicUser= is enabled. Seccomp blocks calls with directly supplied mode bits only when SUID or SGID is requested, but blocks calls such as openat2() entirely because their mode bits cannot be inspected. Source: systemd v261.3, `systemd.exec(5)`. */
911
917
  readonly RestrictSUIDSGID?: boolean;
@@ -941,7 +947,7 @@ interface SystemdServiceSection extends CustomDirectiveSection {
941
947
  readonly RuntimeRandomizedExtraSec?: number | string;
942
948
  /** Set the SELinux security context of the executed process. If set, this will override the automated domain transition. However, the policy still needs to authorize the transition. This directive is ignored if SELinux is disabled. If prefixed by -, failing to set the SELinux security context will be ignored, but it is still possible that the subsequent execve() may fail if the policy does not allow the transition for the non-overridden context. This does not affect commands prefixed with +. See setexeccon3 for details. Source: systemd v260.1, `systemd.exec(5)`. */
943
949
  readonly SELinuxContext?: string;
944
- /** Controls the secure bits set for the executed process. Takes a space-separated combination of options from the following list: keep-caps, keep-caps-locked, no-setuid-fixup, no-setuid-fixup-locked, noroot, and noroot-locked. This option may appear more than once, in which case the secure bits are ORed. If the empty string is assigned to this option, the bits are reset to 0. This does not affect commands prefixed with +. See capabilities(7) for details. Source: systemd v260.1, `systemd.exec(5)`. */
950
+ /** Sets a space-separated combination of secure bits: `keep-caps`, `no-setuid-fixup`, `noroot`, `no-cap-ambient-raise`, `exec-restrict-file`, `exec-deny-interactive`, and their `-locked` variants. Repeated assignments combine the bits; an empty string resets them to zero. Commands prefixed with `+` are unaffected. See capabilities(7) and the kernel executability-check documentation. Source: systemd v262, `systemd.exec(5)`. */
945
951
  readonly SecureBits?: string | readonly string[];
946
952
  /** Specifies whether to send SIGHUP to remaining processes immediately after sending the signal configured with KillSignal=. This is useful to indicate to shells and shell-like programs that their connection has been severed. Takes a boolean value. Defaults to no. Source: systemd v260.1, `systemd.kill(5)`. */
947
953
  readonly SendSIGHUP?: boolean;
@@ -1069,7 +1075,7 @@ interface SystemdServiceSection extends CustomDirectiveSection {
1069
1075
  readonly UtmpIdentifier?: string;
1070
1076
  /** Takes one of init, login or user. If UtmpIdentifier= is set, controls which type of utmp5/wtmp entries for this service are generated. This setting has no effect unless UtmpIdentifier= is set too. If init is set, only an INIT_PROCESS entry is generated and the invoked process must implement a getty-compatible utmp/wtmp logic. If login is set, first an INIT_PROCESS entry, followed by a LOGIN_PROCESS entry is generated. In this case, the invoked process must implement a login1-compatible utmp/wtmp logic. If user is set, first an INIT_PROCESS entry, then a LOGIN_PROCESS entry and finally a USER_PROCESS entry is generated. In this case, the invoked process may be any process that is suitable to be run as session leader. Defaults to init. Source: systemd v260.1, `systemd.exec(5)`. */
1071
1077
  readonly UtmpMode?: UtmpModeDirectiveValue;
1072
- /** Configures the mechanism via which the service notifies the manager that the service start-up has finished. One of simple, exec, forking, oneshot, dbus, notify, notify-reload, or idle:. Source: systemd v260.1, `systemd.service(5)`. */
1078
+ /** Configures how the service notifies the manager that startup has finished: `simple`, `exec`, `forking`, `oneshot`, `dbus`, `notify`, `notify-reload`, or `idle`. With `notify-reload`, the main process must catch or block `ReloadSignal=` before sending its initial `READY=1` notification, or startup fails. Source: systemd v262, `systemd.service(5)`. */
1073
1079
  readonly Type?: ServiceTypeDirectiveValue;
1074
1080
  /** Configures the watchdog timeout for a service. The watchdog is activated when the start-up is completed. The service must call sd_notify3 regularly with WATCHDOG=1 (i.e. the "keep-alive ping"). If the time between two such calls is larger than the configured time, then the service is placed in a failed state and it will be terminated with SIGABRT (or the signal specified by WatchdogSignal=). By setting Restart= to on-failure, on-watchdog, on-abnormal or always, the service will be automatically restarted. The time configured here will be passed to the executed service process in the WATCHDOG_USEC= environment variable. This allows daemons to automatically enable the keep-alive pinging logic if watchdog support is enabled for the service. If this option is used, NotifyAccess= (see below) should be set to open access to the notification socket provided by systemd. If NotifyAccess= is not set, it will be implicitly set to main. Defaults to 0, which disables this feature. The service can check whether the service manager expects watchdog keep-alive notifications. See sd_watchdog_enabled3 for details. sd_event_set_watchdog3 may be used to enable automatic watchdog notification support. Source: systemd v260.1, `systemd.service(5)`. */
1075
1081
  readonly WatchdogSec?: number | string;
@@ -1359,6 +1365,10 @@ declare const notify: {
1359
1365
  * Use this when a `Type=notify` service has completed its startup work and is
1360
1366
  * ready to be considered fully started. If `options.status` is provided, it is
1361
1367
  * sent as an additional `STATUS=...` field.
1368
+ *
1369
+ * With `Type=notify-reload`, the main process must catch or block its
1370
+ * `ReloadSignal=` (SIGHUP by default) before sending readiness. Since systemd
1371
+ * v262, startup fails if it does neither. Source: systemd v262, `systemd.service(5)`.
1362
1372
  */
1363
1373
  ready(options?: NotifyOptions): Promise<Result<void, NotifySendError>>;
1364
1374
  /**
@@ -1632,4 +1642,4 @@ declare function defaultSystemd(): Systemd;
1632
1642
  declare const Internal: typeof internal_d_exports;
1633
1643
  //#endregion
1634
1644
  export { SystemdServiceOptions as $, CommandExecutionOptions as A, SystemctlActiveState as B, UnitLogsReadError as C, UnitStartError as D, UnitMaterializationErrorReason as E, MaterializedUnit as F, SystemctlOptions as G, SystemctlIsEnabledOptions as H, NotifyOptions as I, SystemctlStateQueryOptions as J, SystemctlServiceStatus as K, ServiceBaseName as L, CommandOutput as M, ExecutableOptions as N, AnySystemdService as O, LogsOptions as P, SystemdOptions as Q, ServiceFilename as R, UnitEnableError as S, UnitMaterializationError as T, SystemctlIsSystemRunningOptions as U, SystemctlEnablementState as V, SystemctlListTimersOptions as W, SystemctlSystemRunningState as X, SystemctlStatusOptions as Y, SystemctlTimerListEntry as Z, NotifySendErrorReason as _, SystemdTsAttachOptions as a, TimerTargetUnit as at, SystemdCommandEnvironmentReason as b, SystemdTsDetachOptions as c, SystemdTimer as ct, Systemctl as d, defineExecutable as dt, SystemdTimerOptions as et, notify as f, Result as ft, NotifySendError as g, NoUnitsProvidedError as h, SystemdTs as i, TimerTargetServiceName as it, CommandExecutor as j, AnySystemdTimer as k, SystemdTsReattachOptions as l, SystemdService as lt, InvalidExecDirectiveError as m, Systemd as n, TimerBaseName as nt, SystemdTsAttachmentResult as o, UnitValue as ot, ExecutableInferenceError as p, SystemctlShowOptions as q, SystemdMaterialization as r, TimerFilename as rt, SystemdTsAttachmentSelector as s, ValidInstallUnits as st, Internal as t, SystemdUnit as tt, defaultSystemd as u, Executable as ut, SystemctlCommandError as v, UnitLogsReadErrorReason as w, SystemdTsError as x, SystemctlCommandErrorReason as y, StartStatus as z };
1635
- //# sourceMappingURL=index-6lsBWH4h.d.mts.map
1645
+ //# sourceMappingURL=index-C9XrvZh3.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-C9XrvZh3.d.mts","names":["I"],"sources":["../src/main/internal.ts","../src/main/executable.ts","../src/main/systemd-service.ts","../src/main/systemd-timer.ts","../src/main/types.ts","../src/main/errors.ts","../src/main/notify.ts","../src/main/systemctl.ts","../src/main/systemd.ts","../src/main/index.ts"],"mappings":";;;KAiBY,OAAO,QAAQ;WAEZ;WACA,OAAO;;WAGP;WACA,OAAO;;KAgBjB;iBAEW,kBAAkB,cAAc;iBAIhC,uBAAuB,SAAS;iBAShC,uBAAuB;iBAQvB,kBAAkB,iBAAiB,wBAAwB,qBACzE,SAAS,WACR,SAAS;iBAUI,iBAAiB,iBAAiB,yBAChD,SAAS,WACR;iBAgBa,uBACd,SAAS,wB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2 @@
1
- import { $ as SystemdServiceOptions, A as CommandExecutionOptions, B as SystemctlActiveState, C as UnitLogsReadError, D as UnitStartError, E as UnitMaterializationErrorReason, F as MaterializedUnit, G as SystemctlOptions, H as SystemctlIsEnabledOptions, I as NotifyOptions, J as SystemctlStateQueryOptions, K as SystemctlServiceStatus, L as ServiceBaseName, M as CommandOutput, N as ExecutableOptions, O as AnySystemdService, P as LogsOptions, Q as SystemdOptions, R as ServiceFilename, S as UnitEnableError, T as UnitMaterializationError, U as SystemctlIsSystemRunningOptions, V as SystemctlEnablementState, W as SystemctlListTimersOptions, X as SystemctlSystemRunningState, Y as SystemctlStatusOptions, Z as SystemctlTimerListEntry, _ as NotifySendErrorReason, a as SystemdTsAttachOptions, at as TimerTargetUnit, b as SystemdCommandEnvironmentReason, c as SystemdTsDetachOptions, ct as SystemdTimer, d as Systemctl, dt as defineExecutable, et as SystemdTimerOptions, f as notify, ft as Result, g as NotifySendError, h as NoUnitsProvidedError, i as SystemdTs, it as TimerTargetServiceName, j as CommandExecutor, k as AnySystemdTimer, l as SystemdTsReattachOptions, lt as SystemdService, m as InvalidExecDirectiveError, n as Systemd, nt as TimerBaseName, o as SystemdTsAttachmentResult, ot as UnitValue, p as ExecutableInferenceError, q as SystemctlShowOptions, r as SystemdMaterialization, rt as TimerFilename, s as SystemdTsAttachmentSelector, st as ValidInstallUnits, t as Internal, tt as SystemdUnit, u as defaultSystemd, ut as Executable, v as SystemctlCommandError, w as UnitLogsReadErrorReason, x as SystemdTsError, y as SystemctlCommandErrorReason, z as StartStatus } from "./index-6lsBWH4h.mjs";
1
+ import { $ as SystemdServiceOptions, A as CommandExecutionOptions, B as SystemctlActiveState, C as UnitLogsReadError, D as UnitStartError, E as UnitMaterializationErrorReason, F as MaterializedUnit, G as SystemctlOptions, H as SystemctlIsEnabledOptions, I as NotifyOptions, J as SystemctlStateQueryOptions, K as SystemctlServiceStatus, L as ServiceBaseName, M as CommandOutput, N as ExecutableOptions, O as AnySystemdService, P as LogsOptions, Q as SystemdOptions, R as ServiceFilename, S as UnitEnableError, T as UnitMaterializationError, U as SystemctlIsSystemRunningOptions, V as SystemctlEnablementState, W as SystemctlListTimersOptions, X as SystemctlSystemRunningState, Y as SystemctlStatusOptions, Z as SystemctlTimerListEntry, _ as NotifySendErrorReason, a as SystemdTsAttachOptions, at as TimerTargetUnit, b as SystemdCommandEnvironmentReason, c as SystemdTsDetachOptions, ct as SystemdTimer, d as Systemctl, dt as defineExecutable, et as SystemdTimerOptions, f as notify, ft as Result, g as NotifySendError, h as NoUnitsProvidedError, i as SystemdTs, it as TimerTargetServiceName, j as CommandExecutor, k as AnySystemdTimer, l as SystemdTsReattachOptions, lt as SystemdService, m as InvalidExecDirectiveError, n as Systemd, nt as TimerBaseName, o as SystemdTsAttachmentResult, ot as UnitValue, p as ExecutableInferenceError, q as SystemctlShowOptions, r as SystemdMaterialization, rt as TimerFilename, s as SystemdTsAttachmentSelector, st as ValidInstallUnits, t as Internal, tt as SystemdUnit, u as defaultSystemd, ut as Executable, v as SystemctlCommandError, w as UnitLogsReadErrorReason, x as SystemdTsError, y as SystemctlCommandErrorReason, z as StartStatus } from "./index-C9XrvZh3.mjs";
2
2
  export { type AnySystemdService, type AnySystemdTimer, type CommandExecutionOptions, type CommandExecutor, type CommandOutput, Executable, ExecutableInferenceError, type ExecutableOptions, Internal, InvalidExecDirectiveError, type LogsOptions, type MaterializedUnit, NoUnitsProvidedError, type NotifyOptions, NotifySendError, type NotifySendErrorReason, type Result, type ServiceBaseName, type ServiceFilename, type StartStatus, Systemctl, type SystemctlActiveState, SystemctlCommandError, type SystemctlCommandErrorReason, type SystemctlEnablementState, type SystemctlIsEnabledOptions, type SystemctlIsSystemRunningOptions, type SystemctlListTimersOptions, type SystemctlOptions, type SystemctlServiceStatus, type SystemctlShowOptions, type SystemctlStateQueryOptions, type SystemctlStatusOptions, type SystemctlSystemRunningState, type SystemctlTimerListEntry, Systemd, type SystemdCommandEnvironmentReason, SystemdMaterialization, type SystemdOptions, SystemdService, type SystemdServiceOptions, SystemdTimer, type SystemdTimerOptions, SystemdTs, type SystemdTsAttachOptions, type SystemdTsAttachmentResult, type SystemdTsAttachmentSelector, type SystemdTsDetachOptions, SystemdTsError, type SystemdTsReattachOptions, type SystemdUnit, type TimerBaseName, type TimerFilename, type TimerTargetServiceName, type TimerTargetUnit, UnitEnableError, UnitLogsReadError, type UnitLogsReadErrorReason, UnitMaterializationError, type UnitMaterializationErrorReason, UnitStartError, type UnitValue, type ValidInstallUnits, defaultSystemd, defineExecutable, notify };
package/dist/index.mjs CHANGED
@@ -1,2 +1 @@
1
- import { _ as SystemdTsError, a as defaultSystemd, b as UnitMaterializationError, c as SystemdService, d as defineExecutable, f as ExecutableInferenceError, g as SystemctlCommandError, h as NotifySendError, i as SystemdTs, l as notify, m as NoUnitsProvidedError, n as Systemd, o as Systemctl, p as InvalidExecDirectiveError, r as SystemdMaterialization, s as SystemdTimer, t as Internal, u as Executable, v as UnitEnableError, x as UnitStartError, y as UnitLogsReadError } from "./main-DqJ5f7Al.mjs";
2
- export { Executable, ExecutableInferenceError, Internal, InvalidExecDirectiveError, NoUnitsProvidedError, NotifySendError, Systemctl, SystemctlCommandError, Systemd, SystemdMaterialization, SystemdService, SystemdTimer, SystemdTs, SystemdTsError, UnitEnableError, UnitLogsReadError, UnitMaterializationError, UnitStartError, defaultSystemd, defineExecutable, notify };
1
+ export { u as Executable, f as ExecutableInferenceError, t as Internal, p as InvalidExecDirectiveError, m as NoUnitsProvidedError, h as NotifySendError, o as Systemctl, g as SystemctlCommandError, n as Systemd, r as SystemdMaterialization, c as SystemdService, s as SystemdTimer, i as SystemdTs, _ as SystemdTsError, v as UnitEnableError, y as UnitLogsReadError, b as UnitMaterializationError, x as UnitStartError, a as defaultSystemd, d as defineExecutable, l as notify } from "./main-BlzhT1eg.mjs";
@@ -601,6 +601,10 @@ const notify = {
601
601
  * Use this when a `Type=notify` service has completed its startup work and is
602
602
  * ready to be considered fully started. If `options.status` is provided, it is
603
603
  * sent as an additional `STATUS=...` field.
604
+ *
605
+ * With `Type=notify-reload`, the main process must catch or block its
606
+ * `ReloadSignal=` (SIGHUP by default) before sending readiness. Since systemd
607
+ * v262, startup fails if it does neither. Source: systemd v262, `systemd.service(5)`.
604
608
  */
605
609
  async ready(options = {}) {
606
610
  try {
@@ -1609,4 +1613,4 @@ const Internal = internal_exports;
1609
1613
  //#endregion
1610
1614
  export { SystemdTsError as _, defaultSystemd as a, UnitMaterializationError as b, SystemdService as c, defineExecutable as d, ExecutableInferenceError as f, SystemctlCommandError as g, NotifySendError as h, SystemdTs as i, notify as l, NoUnitsProvidedError as m, Systemd as n, Systemctl as o, InvalidExecDirectiveError as p, SystemdMaterialization as r, SystemdTimer as s, Internal as t, Executable as u, UnitEnableError as v, UnitStartError as x, UnitLogsReadError as y };
1611
1615
 
1612
- //# sourceMappingURL=main-DqJ5f7Al.mjs.map
1616
+ //# sourceMappingURL=main-BlzhT1eg.mjs.map