|
#!/bin/bash
|
|
|
|
# [1] Create service target (boot)
|
|
sudo ln -s $(pwd)/sgca /usr/sbin/sgca;
|
|
|
|
# [2] Create service unit
|
|
sudo ln -s $(pwd)/sgca.service /lib/systemd/system/sgca.service;
|
|
|
|
# [3] Enable service (optional if no [Install])
|
|
sudo systemctl enable sgca.service;
|