@quadient/skillshare 1.17.0 → 1.17.1
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/dist/agents-service.js +3 -1
- package/package.json +1 -1
package/dist/agents-service.js
CHANGED
|
@@ -112,6 +112,8 @@ function systemdQuote(value) {
|
|
|
112
112
|
/** A systemd user service, started with the user's session and again whenever it fails. */
|
|
113
113
|
export function systemdUnit(config, appDir) {
|
|
114
114
|
const paths = servicePaths(appDir);
|
|
115
|
+
// WorkingDirectory takes a literal path (including spaces), not a quoted command argument.
|
|
116
|
+
const workingDirectory = appDir.replace(/%/g, '%%');
|
|
115
117
|
return `[Unit]
|
|
116
118
|
Description=Skillshare agents listener
|
|
117
119
|
After=network-online.target
|
|
@@ -119,7 +121,7 @@ After=network-online.target
|
|
|
119
121
|
[Service]
|
|
120
122
|
Type=simple
|
|
121
123
|
ExecStart=${systemdQuote(config.node)} ${systemdQuote(paths.launcher)}
|
|
122
|
-
WorkingDirectory=${
|
|
124
|
+
WorkingDirectory=${workingDirectory}
|
|
123
125
|
Restart=on-failure
|
|
124
126
|
RestartSec=30
|
|
125
127
|
StandardOutput=append:${paths.output}
|