Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
strong-service-upstart
Advanced tools
Generate an Upstart job using the provided parameters.
npm install strong-service-upstart
var fs = require('fs');
var upstart = require('strong-service-upstart');
// Generate Upstart job for my-app
upstart({name: 'my-app'}, function(err, job) {
fs.writeFile('/etc/init/my-app.conf', job, function(err) {
if (err) console.error(err);
});
});
// Also supports synchronous mode
fs.writeFileSync('/etc/init/my-app.conf', upstart({name: 'my-app'}));
This module supports a subset of those used in the node-linux templates:
name
- name of service. In comments in v1.4 and syslog tagging in v0.6.
name
is an alias for label
and servicesummary
.description
- multi-word description of service. description
is an
alias for servicedescription
.author
- sets author field of Upstart job (defaults to current user)cwd
- working directory to run service from (defaults to /
)user
- user to run service as (defaults to nodbody
)group
- group to run service as (Upstart v1.4 only, defaults to nogroup
)execpath
- path to binary to executablescript
- arguments to execpath (such as a script)created
- timestamp used in generated job (defaults to current time)env
- environment variables to set in Upstart jobversion
- Upstart version to target: 0.6
, 1.4
(default)template
- override internal templateUpstart v1.4 added support for setuid and setgid, so the default template requires Upstart v1.4.
A job file compatible with older versions of Upstart can be generated by
specifying version: '0.6'
in the options (or by providing your own template).
Templates use _.template from Lodash using
EJS style syntax: <%= option %>
.
FAQs
Generate an upstart job using the provided parameters.
We found that strong-service-upstart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.