On Fri, Sep 6, 2019 at 5:16 PM Albert <[email protected]> wrote: > > Hi, RobertCNelson. > Thanks for your answer. > > I added this line in service file > Environment=NODE_PATH=/usr/lib/node_modules > > [Unit] > After=network-online.target > [Service] > Type=simple > Environment=NODE_PATH=/usr/lib/node_modules > ExecStart=/usr/bin/scriptname.sh > [Install] > WantedBy=multi-user.target
add the export inside your script file... #!/bin/bash cd /var/lib/cloud9/Projects node server.js Regards, -- Robert Nelson https://rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYhjmhOcDWOJqrdXPF6sPB6SnKAfXMTbNNswU1FfT6c-yg%40mail.gmail.com.
