Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0ed23fc
commit 79772e2
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
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,22 @@ | ||
[Unit] | ||
Description=PM2 process manager | ||
Documentation=https://pm2.keymetrics.io/ | ||
After=network.target | ||
|
||
[Service] | ||
Type=forking | ||
User=user | ||
LimitNOFILE=infinity | ||
LimitNPROC=infinity | ||
LimitCORE=infinity | ||
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/nodejs/bin:/opt/pm2/node_modules/pm2/bin | ||
Environment=PM2_HOME=/home/user/.pm2 | ||
PIDFile=/home/user/.pm2/pm2.pid | ||
Restart=on-failure | ||
|
||
ExecStart=/opt/pm2/node_modules/pm2/bin/pm2 resurrect | ||
ExecReload=/opt/pm2/node_modules/pm2/bin/pm2 reload all | ||
ExecStop=/opt/pm2/node_modules/pm2/bin/pm2 kill | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
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