Simple screen daemon written in Go.
sudo su -mkdir -p /root/screend /root/screend/daemons && cd /root/screendwget https://github.com/OkaeriPoland/screend/releases/latest/download/screendchmod +x screendwget https://raw.githubusercontent.com/OkaeriPoland/screend/master/screend.shmv screend.sh /etc/init.d/screendchmod 755 /etc/init.d/screendchown root:root /etc/init.d/screendupdate-rc.d screend defaults/etc/init.d/screend start
sudo su -cd /root/screendwget https://github.com/OkaeriPoland/screend/releases/latest/download/screend -O screendchmod +x screend/etc/init.d/screend restart
update-rc.d screend removesudo rm -rf /root/screend /etc/init.d/screend
To add own screen to screend create new .ini file in /root/screend/daemons, then run /etc/init.d/screend restart
[Screen]
name = Example Daemon
user = example
[Execution]
run_directory = /home/example
command = bash
start_hook = "echo 'I will run after successful start, outside of the screen.' > /home/example/test.log"
[Daemon]
enabled = true
logging = falseAs current installation method sucks, you can edit screend.sh and install screend in way you like. If you know what you are doing, of course.