cornetp / eagle-owl

Data acquisition from an OWL CM160 +USB device on linux platforms
GNU General Public License v2.0
43 stars 32 forks source link

systemd startup file #24

Open qwazix opened 6 years ago

qwazix commented 6 years ago

Here's a systemd startup item for modern distros. Put in /etc/systemd/system/

[Unit]
Description=CM160 server

[Service]
Type=forking
ExecStartPre=/bin/sh -c '. /etc/eagleowl.conf;test -x $install_path/cm160 || { $
ExecStart=/bin/sh -c '. /etc/eagleowl.conf;cd $install_path;$install_path/cm160$
ExecStop=killall cm160

[Install]
WantedBy=multi-user.target
vincent1890 commented 6 years ago

Impossible to run it how to transform the script init to systemd please

fbourqui commented 6 years ago

You can have a look at my fork, with x86 build and working systemd script: https://github.com/fbourqui/eagle-owl ---- On Sat, 27 Oct 2018 22:36:13 +0200 vincent1890 notifications@github.com wrote ---- Impossible to run it how to transform the script init to systemd please — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

vincent1890 commented 6 years ago

You can have a look at my fork, with x86 build and working systemd script: https://github.com/fbourqui/eagle-owl ---- On Sat, 27 Oct 2018 22:36:13 +0200 vincent1890 notifications@github.com wrote ---- Impossible to run it how to transform the script init to systemd please — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

Good thank you on ubuntu 18.04

GreenBattery commented 5 years ago

Hi, have you offered a pull request to the main project? if the maintainer is willing to accept, it makes sense to push your enhancements back. Thanks in advance.