Starting as a Service
Windows
MacOS
Ubuntu (init.d)
CentOS/RHEL (system.d)
nano /usr/lib/systemd/system/mySite.service[Unit]
Description=mySite Service
[Service]
ExecStart=/usr/bin/box server start /var/www/mySiteAPI/server.json
Type=forking
[Install]
WantedBy=multi-user.targetLast updated
Was this helpful?