pixl-boot 2.0.1 → 2.0.3
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 +1 -1
- package/boot.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ boot.uninstall(opts, function(err) {
|
|
|
162
162
|
|
|
163
163
|
**The MIT License**
|
|
164
164
|
|
|
165
|
-
Copyright (c) 2016 -
|
|
165
|
+
Copyright (c) 2016 - 2026 Joseph Huckaby.
|
|
166
166
|
|
|
167
167
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
168
168
|
of this software and associated documentation files (the "Software"), to deal
|
package/boot.js
CHANGED
|
@@ -104,6 +104,7 @@ module.exports = {
|
|
|
104
104
|
"Type=" + service_type,
|
|
105
105
|
"ExecStart=" + args.script + " start",
|
|
106
106
|
"ExecStop=" + args.script + " stop",
|
|
107
|
+
"KillMode=none",
|
|
107
108
|
"",
|
|
108
109
|
"[Install]",
|
|
109
110
|
"WantedBy=" + wanted_by
|
|
@@ -224,8 +225,7 @@ module.exports = {
|
|
|
224
225
|
"\t" + '<string>com.' + args.company_name + '.' + args.service_name + '</string>',
|
|
225
226
|
"\t" + '<key>ProgramArguments</key>',
|
|
226
227
|
"\t" + '<array>',
|
|
227
|
-
|
|
228
|
-
"\t\t" + '<string>start</string>',
|
|
228
|
+
String(args.script).split(/\s+/).concat('start').map( cmd => `\t\t<string>${cmd}</string>` ).join("\n"),
|
|
229
229
|
"\t" + '</array>',
|
|
230
230
|
"\t" + '<key>RunAtLoad</key>',
|
|
231
231
|
"\t" + '<true/>',
|
|
@@ -274,7 +274,7 @@ module.exports = {
|
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
// looks like we have a systemd service
|
|
277
|
-
cp.exec( "systemctl disable " + args.service_name + ".service", function() {
|
|
277
|
+
cp.exec( "systemctl disable " + args.service_name + ".service && systemctl daemon-reload", function() {
|
|
278
278
|
fs.unlink( args.service_file, callback );
|
|
279
279
|
} );
|
|
280
280
|
}); // fs.access
|
package/package.json
CHANGED