Starting as a Service

Windows
MacOS
CentOS/RHEL/Ubuntu (system.d)
Last updated
Was this helpful?

Last updated
Was this helpful?
Was this helpful?
nano /usr/lib/systemd/system/mySite.service[Unit]
Description=mySite Service
[Service]
ExecStart=/usr/local/bin/box server start /var/www/mySiteAPI/server.json
Type=forking
[Install]
WantedBy=multi-user.targetsystemctl start mySite.servicesystemctl status mySite.servicesystemctl enable mySite.service