You need something like this: [Unit] Description=imu output After=network.target
[Service] ExecStart=/usr/bin/imuout.sh Type=oneshot [install] WantedBy=network.target All the rest of that "garbage" is exactly that - Garbage. Your script can deal with working directory, and not outputting to terminal if that's what you wish. Then you simply . . . systemctl daemon-reload systemctl enable <service name> --now Making sure that service-name.service exists in /lib/systemd/system/ As far as what target you need, well that I don't know. I have no clue what an IMU *is* in the context of Nodered, and no idea what you're trying to do. However, if you need your service to run, and all it requires is a network to be established. The above should work. On Sat, Jan 21, 2017 at 1:32 PM, Richard Maurer <[email protected]> wrote: > Yup, been all over searches for systemd, and tried different options. > Here is my current script /lib/systemd/system/imuout.service: > > [Unit] > Description=imu output > #Wants=network.target > #After=syslog.target network.target > > [Service] > #Type=simple > #User=root > #Group=root > #Nice=5 > ExecStart=/usr/bin/imuout.sh > WorkingDirectory=/home/tinkerforge/Example_project/ > StandardOutput=null > > [install] > WantedBy=multi-user.target > Alias=imuout.service > > > > with the same error with various options above attempted and commented out > > > On Sat, Jan 21, 2017 at 3:27 PM, William Hermans <[email protected]> > wrote: > >> If you're trying to enable, thus "install" a service with systemctl You >> need a Wantedby target. >> >> But just google: "how to systemd" + <whichever search term you need> and >> you'll probably be greated by way more hits than you'll ever need. >> >> On Sat, Jan 21, 2017 at 12:40 PM, Richard Maurer <[email protected]> >> wrote: >> >>> FYI, I ended up implementing the solution exactly as I had hoped -- One >>> Beagle Green wireless as client, another Beagle hooked via ethernet to an >>> AP as server, and using Nodered to TCP between the two. It's working >>> nearly exactly as I want except that I seem to be unable to establish a >>> service on the BBG wireless (needed to execute a .py program to run an >>> IMU. It's giving me a >>> The unit files have no installation config (WantedBy, RequiredBy, Also, >>> Alias.... >>> error when I try to enable the service. Not sure why, as I was able to >>> enable the Nodered service, using their code and installation guide. I've >>> seen a number of recent similar errors that have been reported in bug >>> reports, so I might be doing the installation correctly, but just can't >>> figure out what is different in the node-red service. >>> Anyway thanks for the inputs, offers, and suggestions. >>> >>> On Thu, Jan 12, 2017 at 1:35 PM, TJF <[email protected]> wrote: >>> >>>> >>>> Am Donnerstag, 12. Januar 2017 18:56:26 UTC+1 schrieb Richard Maurer: >>>>> >>>>> So... gotta go with what is easiest for me to understand. >>>>> >>>> >>>> That's why I introduced the ESP solution. >>>> >>>> It's plug-and-play when you spend a few further bugs and buy a >>>> developers board like nodeMCU <https://en.wikipedia.org/wiki/NodeMCU>. >>>> You plug in the USB, start a terminal and you'll also see what's going on >>>> with it in the Lua interpreter. >>>> >>>> For my engineers mind, this solution will provide faster results. You >>>> can focus on the necessary features and use a lot of-the-shelf features. >>>> >>>> Anyway, it's your decision. Good luck for your project. >>>> >>>> -- >>>> For more options, visit http://beagleboard.org/discuss >>>> --- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "BeagleBoard" group. >>>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>>> pic/beagleboard/59BZEmeiSIE/unsubscribe. >>>> To unsubscribe from this group and all its topics, send an email to >>>> [email protected]. >>>> To view this discussion on the web visit https://groups.google.com/d/ms >>>> gid/beagleboard/ae0f51f5-5df9-4cb5-96a6-1d72d6f01c38%40googlegroups.com >>>> <https://groups.google.com/d/msgid/beagleboard/ae0f51f5-5df9-4cb5-96a6-1d72d6f01c38%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> 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/ms >>> gid/beagleboard/CAMYVp3kFTEVCpuxaX1QsftdgJY7VZ2ScVJ%2BpnZxSc >>> a4Zzo8-gA%40mail.gmail.com >>> <https://groups.google.com/d/msgid/beagleboard/CAMYVp3kFTEVCpuxaX1QsftdgJY7VZ2ScVJ%2BpnZxSca4Zzo8-gA%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> For more options, visit http://beagleboard.org/discuss >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "BeagleBoard" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/beagleboard/59BZEmeiSIE/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/beagleboard/CALHSORqYhrGuF6%2B6QAmB9UQizeTB2nFbj5Fm3ghOJ >> QTCN3Hgcg%40mail.gmail.com >> <https://groups.google.com/d/msgid/beagleboard/CALHSORqYhrGuF6%2B6QAmB9UQizeTB2nFbj5Fm3ghOJQTCN3Hgcg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- > 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/CAMYVp3%3DcqtKrP__0nDEk_F-oLMfXnMqEskwtVMGr8nKtYbAP%2BQ% > 40mail.gmail.com > <https://groups.google.com/d/msgid/beagleboard/CAMYVp3%3DcqtKrP__0nDEk_F-oLMfXnMqEskwtVMGr8nKtYbAP%2BQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CALHSORqoioc6hXDG%3Dwy67o4ALZLv3MTXNz_roDs6y4wxyhGX2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
