mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-08-31 16:39:20 +00:00
* 🎨 Split off cli into separate binaries This commit splits off the cli into 3 binaries: - agent - cli - provider The provider now is a separate component that can be tested by itself and have its own lifecycle. This paves the way to a ligher c3os variant, HA support and other features that can be provided on runtime. This is working, but still there are low hanging fruit to care about. Fixes #14 * 🤖 Add provider bin to releases * ⚙️ Handle signals * ⚙️ Reduce buildsize footprint * 🎨 Scan for providers also in /system/providers * 🤖 Run goreleaser * 🎨 Refactoring
20 lines
505 B
Go
20 lines
505 B
Go
package openrc
|
|
|
|
const EdgevpnUnit string = `#!/sbin/openrc-run
|
|
|
|
depend() {
|
|
after net
|
|
provide edgevpn
|
|
}
|
|
|
|
supervisor=supervise-daemon
|
|
name="edgevpn"
|
|
command="edgevpn"
|
|
supervise_daemon_args="--stdout /var/log/edgevpn.log --stderr /var/log/edgevpn.log"
|
|
pidfile="/run/edgevpn.pid"
|
|
respawn_delay=5
|
|
set -o allexport
|
|
if [ -f /etc/environment ]; then source /etc/environment; fi
|
|
if [ -f /etc/systemd/system.conf.d/edgevpn-c3os.env ]; then source /etc/systemd/system.conf.d/edgevpn-c3os.env; fi
|
|
set +o allexport`
|