add systemd service example
This commit is contained in:
14
systemd.service
Normal file
14
systemd.service
Normal file
@ -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
|
Reference in New Issue
Block a user