I am trying to automate running Cloud9, by setting it as a service on Debian. This error stops me:
$ sudo service cloud9 start Failed to start cloud9.service: Unit cloud9.service failed to load: Invalid argument. See system logs and 'systemctl status cloud9.service' for details.
systemctl status cloud9.service output:
$ systemctl status cloud9.service ● cloud9.service - cloud9 Loaded: error (Reason: Invalid argument) Active: inactive (dead)
Probably it is due to misconfiguration in
/etc/systemd/system/cloud9.service, which I just created:
[Unit] Description=cloud9 [Service] ExecStart=node server.js -w /home/user -l 0.0.0.0 -a admin:admin Restart=always User=nobody Group=nobody Environment=PATH=/usr/bin:/usr/local/bin Environment=NODE_ENV=production WorkingDirectory=/home/user/c9sdk [Install] WantedBy=multi-user.target
How to create a simple startup script for the service?