forked from PippCandy/autoinstallers
first commit
This commit is contained in:
2
install/s2l/input.sh
Normal file
2
install/s2l/input.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
screen -S s2l -X stuff "${*}^M"
|
12
install/s2l/s2l-pm2.json
Normal file
12
install/s2l/s2l-pm2.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"apps": [
|
||||
{
|
||||
"name": "s2l",
|
||||
"script": "ttyd -R -p changeme screen -x s2l",
|
||||
"args" : "",
|
||||
"error_file": "/dev/null",
|
||||
"log_file": "/dev/null"
|
||||
|
||||
}
|
||||
]
|
||||
}
|
13
install/s2l/s2l-service.service
Normal file
13
install/s2l/s2l-service.service
Normal file
@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Screen2Log Backend for CMDBOT.Service
|
||||
After=network.target
|
||||
StartLimitIntervalSec=0
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
RestartSec=1
|
||||
User=root
|
||||
ExecStart=/bin/bash -c 'screen -mdS s2l -s bash'
|
||||
RemainAfterExit=yes
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user