-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DN-1: Systemctl file for running test derecksnotes.com
- Loading branch information
1 parent
440bb12
commit a9e3d6e
Showing
2 changed files
with
16 additions
and
16 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# /etc/systemd/system/test-derecksnotes-server.service | ||
# systemctl restart test-derecksnotes-server.service | ||
# journalctl -u test-derecksnotes-server.service -f | ||
# https://nodesource.com/blog/running-your-node-js-app-with-systemd-part-1/ | ||
[Unit] | ||
Description=test-derecksnotes-server.js - runs test subdomain server responses for test.derecksnotes.com | ||
After=network.target | ||
|
||
[Service] | ||
Type=simple | ||
User=dereck | ||
ExecStart=/home/dereck/.nvm/versions/node/v20.9.0/bin/node /html/derecksnotes-playground/test-derecksnotes.com/server/dist/index.js | ||
Restart=on-failure | ||
|
||
[Install] | ||
WantedBy=multi-user.target |