Created
November 19, 2019 06:18
-
-
Save usmansaleem/a128f86517d573c714724bd03096be62 to your computer and use it in GitHub Desktop.
Systemd file blog backend - place the file in /etc/systemd/system
This file contains hidden or 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
[Unit] | |
Description=Usman Saleem Blog - NodeJS Backend | |
Documentation=https://usmans.info | |
After=network.target | |
[Service] | |
Type=simple | |
User=blog | |
WorkingDirectory=/opt/blog-nodejs-ts | |
ExecStart=/usr/bin/yarn start | |
Restart=on-failure | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment