diff --git a/systemd.service b/systemd.service new file mode 100644 index 0000000..141a9ac --- /dev/null +++ b/systemd.service @@ -0,0 +1,14 @@ +[Unit] +Description=Pleroma Ollama Bot +Wants=network-online.target +After=network-online.target + +[Service] +Type=simple +User=USERNAME_HERE +Restart=always +RestartSec=3 +ExecStart=/usr/bin/screen -L -DmS pleroma-ollama-bot /home/bot/.nvm/versions/node/v22.11.0/bin/npm run start +WorkingDirectory=/path/to/directory +[Install] +WantedBy=multi-user.target \ No newline at end of file