Created
July 4, 2018 07:54
-
-
Save borantula/fd3497a6e7092bdef0f594cd8445aa23 to your computer and use it in GitHub Desktop.
Run command pm2 from other user as root
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
sudo runuser -l root -c 'pm2 restart myapp' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment