10 lines
209 B
Bash
Executable file
10 lines
209 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
TEMPLATE='pm2.service'
|
|
SERVICE='/etc/systemd/system/pm2.service'
|
|
|
|
if [ -f $SERVICE ]; then
|
|
sudo cp $TEMPLATE $SERVICE
|
|
sudo systemctl enable $SERVICE
|
|
sudo systemctl start $SERVICE
|
|
fi
|