Commit d9339fb
committed
fix: stop/start service appropriately in configure
When configuring the service, ensure the existing process is stopped using
the appropriate means (either pm2 or systemctl). Then start the new process
using the appropriate means, based on the chosen option: if --pm2 flag was
provided then use pm2, if the systemd service unit is installed, then use
systemctl. Otherwise the service is not started since neither pm2 nor
systemd were selected.1 parent 2706e75 commit d9339fb
1 file changed
+18
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | | - | |
907 | | - | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
908 | 909 | | |
909 | | - | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
910 | 924 | | |
911 | | - | |
912 | 925 | | |
913 | 926 | | |
914 | 927 | | |
915 | | - | |
| 928 | + | |
916 | 929 | | |
917 | 930 | | |
918 | 931 | | |
| |||
0 commit comments