@adecore/service 0.17.0-beta.1 → 0.17.0-beta.2
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/LICENSE +1 -1
- package/README.md +6 -2
- package/package.json +1 -1
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Definitions and injectable managers for macOS launchd GUI jobs and Linux systemd user services. The host supplies identity, paths, environment, commands and files. It keeps installation authorization and executable policy.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
```sh
|
|
6
|
+
bun add @adecore/service
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Licensed under FSL-1.1-MIT, see [LICENSE](LICENSE).
|
|
6
10
|
|
|
7
11
|
```ts
|
|
8
12
|
import { systemdUnit, type ServiceSpec } from '@adecore/service/definitions';
|
|
@@ -23,4 +27,4 @@ const definition = systemdUnit(spec);
|
|
|
23
27
|
|
|
24
28
|
`install()` returns whether an existing definition changed, so a first install returns `false`. Await `restart()` for a changed definition, otherwise call `start()`. Uninstall does not stop a running job. Managers supply no authorization, lock, cancellation or automatic lingering.
|
|
25
29
|
|
|
26
|
-
The full documentation covers [
|
|
30
|
+
The full documentation covers the [overview](https://adecore.dev/service/), [definitions](https://adecore.dev/service/definitions) and [managers](https://adecore.dev/service/managers), with a test that uses fakes instead of real service commands.
|