diff --git a/pkg/alpine/README.rst b/pkg/alpine/README.rst new file mode 100644 index 00000000000..c7dded14985 --- /dev/null +++ b/pkg/alpine/README.rst @@ -0,0 +1,6 @@ +======================== +Support for Alpine Linux +======================== + +This directory contains initialization scripts for Salt services which intended +to be used during the bootstrap process on Alpine Linux (OpenRC init system). diff --git a/pkg/alpine/salt-api b/pkg/alpine/salt-api new file mode 100755 index 00000000000..af44d4f80d2 --- /dev/null +++ b/pkg/alpine/salt-api @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +command="/usr/bin/salt-api" +command_args="--daemon" +pidfile="/var/run/salt-api.pid" +name="Salt API daemon" + +depend() { + need localmount + use net + after bootmisc +} diff --git a/pkg/alpine/salt-master b/pkg/alpine/salt-master new file mode 100755 index 00000000000..4bb3225c9d9 --- /dev/null +++ b/pkg/alpine/salt-master @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +command="/usr/bin/salt-master" +command_args="--daemon" +pidfile="/var/run/salt-master.pid" +name="Salt Master" + +depend() { + need localmount + use net + after bootmisc +} diff --git a/pkg/alpine/salt-minion b/pkg/alpine/salt-minion new file mode 100755 index 00000000000..ff8e0b91cab --- /dev/null +++ b/pkg/alpine/salt-minion @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +command="/usr/bin/salt-minion" +command_args="--daemon" +pidfile="/var/run/salt-minion.pid" +name="Salt Minion" + +depend() { + need localmount + use net + after bootmisc +} diff --git a/pkg/alpine/salt-syndic b/pkg/alpine/salt-syndic new file mode 100755 index 00000000000..3d417257936 --- /dev/null +++ b/pkg/alpine/salt-syndic @@ -0,0 +1,11 @@ +#!/sbin/openrc-run +command="/usr/bin/salt-syndic" +command_args="--daemon" +pidfile="/var/run/salt-syndic.pid" +name="Salt Syndic" + +depend() { + need localmount + use net + after bootmisc +}