Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does this commands.txt support systemd? #4

Closed
nickfan opened this issue May 8, 2019 · 0 comments
Closed

does this commands.txt support systemd? #4

nickfan opened this issue May 8, 2019 · 0 comments

Comments

@nickfan
Copy link

nickfan commented May 8, 2019

does this commands.txt support systemd?
eg:
my systemd service is pm2-user.service
to start custom service:

sudo systemctl start pm2-user.service

the systemd conf file path:

/etc/systemd/system/pm2-user.service

content:

[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/go/bin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
Environment=PM2_HOME=/home/user/.pm2
PIDFile=/home/user/.pm2/pm2.pid
Restart=on-failure

ExecStart=/usr/lib/node_modules/pm2/bin/pm2 resurrect
ExecReload=/usr/lib/node_modules/pm2/bin/pm2 reload all
ExecStop=/usr/lib/node_modules/pm2/bin/pm2 kill

[Install]
WantedBy=multi-user.target

how to set the commands.txt file for this?

@nickfan nickfan closed this as completed May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant