when trying to stop a nodejs process running from a service file the service is never actually stopped, and just keeps running, forcing me to manually kill the process in htop each time. any ideas on how to make the process actually stop ?
additionally i apologize if this isn't the right place to ask this :(
using this as a service file:
[Unit]
Description=Next.JS enviro
After=network.target
[Service]
User=user
Group=group
Type=simple
KillMode=process
WorkingDirectory=/var/www/website.com
ExecStart=/bin/bash -c "npx next start -p 5050"
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target
stopthe service? You can check more logs about your service by using:sudo journalctl -xeu yourfile.service(orsudo journalctl -xu yourfile.serviceto see logs from the beginning)KillMode=processtoKillMode=control-group(fromman systemd.killbothKillMode=processandKillMode=noneare not recommended)