Sample Header Ad - 728x90

Invalid argument while starting Cloud9 service on startup

3 votes
2 answers
11336 views
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?
Asked by Peter Gerhat (1212 rep)
Oct 12, 2016, 03:39 PM
Last activity: Jul 18, 2018, 11:01 PM