StanfordSNR / guardian-agent

[beta] Guardian Agent: secure ssh-agent forwarding for Mosh and SSH
BSD 3-Clause "New" or "Revised" License
438 stars 30 forks source link

Run as a daemon? #10

Open tnguyen14 opened 6 years ago

tnguyen14 commented 6 years ago

Can sga-agent be run as a daemon? Automatically started on startup? Perhaps something managed with systemd?

yookoala commented 6 years ago

Any CLI process can be written into a Unit file and work as a systemd service. There is no need to make sga-guard a daemon. The trick is that you need to specify the intermediary in that command. So if you have multiple intermediary, you'd need multiple unit file. That is not very nice to use.

There are a number of references for writing unit files: