ddserver QdslrDashboard

dynfulldomain hosted @ home

ddserver QdslrDashboard

Install ddserver from github (

apt-get install git build-essential pkg-config libusb-1.0-0-dev
git clone git:// package/DslrDashboardServer
cd package/DslrDashboardServer
g++ -Wall src/main.cpp src/communicator.cpp `pkg-config --libs --cflags libusb-1.0` -lpthread -lrt -lstdc++ -o ddserver
cp ddserver /usr/local/bin/

cat > /etc/systemd/system/ddserver.service <<-EOF
# location: /etc/systemd/system/
Description = ddserver for qdslrDashboard
After       =
# make sure the shell script is executable (chmod +x $1)
# and it begins with a shebang (#!/bin/bash)
ExecStart   = /usr/local/bin/ddserver &
# In case if it gets stopped, restart it immediately
Restart     = always
# With notify Type, service manager will be notified
# when the starting up has finished
#Type        = notify
Type        = simple
# Since Type is notify, notify only service updates
# sent from the main process of the service
#NotifyAccess= main
# corresponds to run level 3
# roughtly meaning wanted by system start
WantedBy    =

systemctl daemon-reload
systemctl enable ddserver.service

systemctl start ddserver.service
systemctl status ddserver.service