diff --git a/ct/headers/xyops b/ct/headers/xyops new file mode 100644 index 000000000..7a8be0a2c --- /dev/null +++ b/ct/headers/xyops @@ -0,0 +1,6 @@ + ____ + _ ____ __/ __ \____ _____ + | |/_/ / / / / / / __ \/ ___/ + _> /etc/systemd/system/xyops.service +[Unit] +Description=xyOps Task Scheduler and Server Monitor +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/xyops +Environment=XYOPS_foreground=1 +ExecStart=/usr/bin/node /opt/xyops/lib/main.js +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now xyops +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc