systemd-add
v1.0.7
Published
Create system services easily
Readme
systemd-add
Create system services easily
npm i -g systemd-addUsage
Usage: systemd-add <name> <command> [options]
Arguments:
name service name
command command to execute
Options:
-V, --version output the version number
-m, --manager <type> system or user
--after <targets...>
-e, --env <vars...> environment variables
-u, --user <user> user to run as
-g, --group <group> group to run as
-c, --cwd <dir> working directory
--restart <policy>
-o, --option <options...> service options
--quiet supress output
-h, --help display help for commandIt uses your current working directory by default.
For example:
cd some-http-backend
systemd-add http-backend "node app.js" -e "PORT=1337"Another example:
systemd-add http-backend "node app.js" -u ubuntu -o "StartLimitBurst=5"License
MIT
