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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/boot.js +3 -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 - 2024 Joseph Huckaby.
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
- "\t\t" + '<string>' + args.script + '</string>',
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixl-boot",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Register your service to launch on server startup (Linux / OS X).",
5
5
  "author": "Joseph Huckaby <jhuckaby@gmail.com>",
6
6
  "homepage": "https://github.com/jhuckaby/pixl-boot",