#!/bin/bash # [1] Create script file cd `pwd`/..; make all; cp boot install/sgca; make clean; cd install; # [2] Create service target (boot) sudo ln -s $(pwd)/sgca /usr/sbin/sgca; # [3] Create service unit sudo ln -s $(pwd)/sgca.service /lib/systemd/system/sgca.service; # [4] Enable service (optional if no [Install]) sudo systemctl enable sgca.service; # [5] Create log file sudo touch /var/log/sgca;