[Unit] Description=Cool IoT [Service] ExecStart=/srv/cool-iot/main.js Restart=always # Cool IoT must be run as "root" to access hardware. User=root Group=root Environment=PATH=/usr/bin:/usr/local/bin Environment=NODE_ENV=production WorkingDirectory=/srv/cool-iot [Install] WantedBy=multi-user.target