mafintosh / Add To Systemd
Licence: mit
Small command line tool to simply add a service to systemd
Stars: ✭ 125
Programming Languages
javascript
184084 projects - #8 most used programming language
add-to-systemd
Small command line tool to simply add a service to systemd
npm install -g add-to-systemd
Usage
# add a node server to systemd (will start it on boot)
add-to-systemd my-new-service "$(which node) server.js --port 8080"
# lets start it right away
systemctl start my-new-service
Full list of options include
Usage: add-to-systemd name [options] command...
--user, -u [user] User the service will run as
--cwd, -c [dir] Set the cwd of the service (Defaults to the current directory)
--nice, -n [integer] Set the process niceness
--env, -e [name=val] Add env vars to the service
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].