mb-service-linux 2.0.1-dev-20260701-8a1ecee → 2.0.1-dev-20260701-3d243ae

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/CHANGELOG.md CHANGED
@@ -29,6 +29,8 @@ If you like this project and find it useful, please consider giving it a star on
29
29
  ### Added
30
30
 
31
31
  - [service]: Add path of service file.
32
+ - [service]: Add Environment PATH to the service file.
33
+ - [service]: Add network-online.target to the service file.
32
34
 
33
35
  <a href="https://www.buymeacoffee.com/luligugithub"><img src="https://matterbridge.io/assets/bmc-button.svg" alt="Buy me a coffee" width="80"></a>
34
36
 
package/README.md CHANGED
@@ -86,7 +86,7 @@ mb-service start
86
86
  When using Bun, create and manage the user-owned service without sudo:
87
87
 
88
88
  ```bash
89
- bunx mb-service create
90
- bunx mb-service enable
91
- bunx mb-service start
89
+ bunx --bun mb-service create
90
+ bunx --bun mb-service enable
91
+ bunx --bun mb-service start
92
92
  ```
package/dist/module.js CHANGED
@@ -186,14 +186,18 @@ function createServiceConfig(root) {
186
186
  const user = process.env.SUDO_USER || process.env.USER;
187
187
  const rootConfig = `[Unit]\n` +
188
188
  `Description=matterbridge\n` +
189
- `After=network.target\n` +
190
- `Wants=network.target\n` +
189
+ `After=network-online.target\n` +
190
+ `Wants=network-online.target\n` +
191
191
  `StartLimitIntervalSec=60\n` +
192
192
  `StartLimitBurst=5\n` +
193
+ `\n` +
193
194
  `[Service]\n` +
194
195
  `Type=simple\n` +
196
+ `# PATH for any child process Matterbridge/plugins spawn (bun/node/npm lookups).\n` +
197
+ `Environment="PATH=/usr/local/bin:/usr/bin:/bin"\n` +
195
198
  `ExecStart=matterbridge --service\n` +
196
199
  `WorkingDirectory=%h\n` +
200
+ `# Logs go to the journal (should be persistent). Read with: journalctl -u matterbridge -n 1000 -f --output cat\n` +
197
201
  `StandardOutput=inherit\n` +
198
202
  `StandardError=inherit\n` +
199
203
  `Restart=always\n` +
@@ -206,14 +210,21 @@ function createServiceConfig(root) {
206
210
  `WantedBy=multi-user.target\n`;
207
211
  const userConfig = `[Unit]\n` +
208
212
  `Description=matterbridge\n` +
209
- `After=network.target\n` +
210
- `Wants=network.target\n` +
213
+ `After=network-online.target\n` +
214
+ `Wants=network-online.target\n` +
211
215
  `StartLimitIntervalSec=60\n` +
212
216
  `StartLimitBurst=5\n` +
217
+ `\n` +
213
218
  `[Service]\n` +
214
219
  `Type=simple\n` +
215
- (isBun() ? `ExecStart=%h/.bun/bin/bun --bun run %h/.bun/bin/matterbridge --service\n` : `ExecStart=matterbridge --service\n`) +
220
+ `# PATH for any child process Matterbridge/plugins spawn (bun/node/npm lookups).\n` +
221
+ (isBun() ? `Environment="PATH=%h/.bun/bin:/usr/local/bin:/usr/bin:/bin"\n` : `Environment="PATH=/usr/local/bin:/usr/bin:/bin"\n`) +
222
+ `# Absolute paths — systemd has no shell PATH. %h = the user's home.\n` +
223
+ `# --bun forces the Bun runtime even though the matterbridge bin has a node shebang,\n` +
224
+ `# and shims any \`node\` the process spawns to Bun as well.\n` +
225
+ (isBun() ? `ExecStart=%h/.bun/bin/bun --bun %h/.bun/bin/matterbridge --service\n` : `ExecStart=matterbridge --service\n`) +
216
226
  `WorkingDirectory=%h\n` +
227
+ `# Logs go to the journal (should be persistent). Read with: journalctl --user -u matterbridge -n 1000 -f --output cat\n` +
217
228
  `StandardOutput=inherit\n` +
218
229
  `StandardError=inherit\n` +
219
230
  `Restart=always\n` +
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "mb-service-linux",
3
- "version": "2.0.1-dev-20260701-8a1ecee",
3
+ "version": "2.0.1-dev-20260701-3d243ae",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "mb-service-linux",
9
- "version": "2.0.1-dev-20260701-8a1ecee",
9
+ "version": "2.0.1-dev-20260701-3d243ae",
10
10
  "license": "Apache-2.0",
11
11
  "bin": {
12
12
  "mb-service": "bin/mb-service"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mb-service-linux",
3
- "version": "2.0.1-dev-20260701-8a1ecee",
3
+ "version": "2.0.1-dev-20260701-3d243ae",
4
4
  "description": "Matterbridge service command line interface",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "Apache-2.0",