maybe chmod 0644 './conf.d/pydoc-3.1'
maybe chmod 0644 './conf.d/quota'
maybe chmod 0644 './conf.d/rsyncd'
+maybe chmod 0644 './conf.d/salt'
maybe chmod 0644 './conf.d/samba'
maybe chmod 0644 './conf.d/saslauthd'
maybe chmod 0644 './conf.d/slapd'
maybe chmod 0755 './init.d/root'
maybe chmod 0755 './init.d/rpc.rquotad'
maybe chmod 0755 './init.d/rsyncd'
+maybe chmod 0755 './init.d/salt.master'
+maybe chmod 0755 './init.d/salt.minion'
maybe chmod 0755 './init.d/samba'
maybe chmod 0755 './init.d/saslauthd'
maybe chmod 0755 './init.d/savecache'
--- /dev/null
+#
+# This options are passed to salt-master:
+# (e.g. --log-level=trace, see salt-master --help)
+#SALT_MASTER_OPTIONS=""
+
+#
+# This options are passed to salt-minion:
+# (e.g. --log-level=trace, see salt-minion --help)
+#SALT_MINION_OPTIONS=""
+
--- /dev/null
+#!/sbin/runscript
+
+depend() {
+ use clock
+ need net netmount
+}
+
+start() {
+ ebegin "Starting salt master"
+ start-stop-daemon --start --pidfile /var/run/salt-master.pid --exec /usr/bin/salt-master -- --daemon ${SALT_MASTER_OPTIONS}
+ eend $? "Failed to start salt master"
+}
+
+stop() {
+ ebegin "Stopping salt master"
+ start-stop-daemon --stop --pidfile /var/run/salt-master.pid
+ eend $? "Failed to stop salt master"
+}
+
--- /dev/null
+#!/sbin/runscript
+
+depend() {
+ use clock
+ need net netmount
+}
+
+start() {
+ ebegin "Starting salt minion"
+ start-stop-daemon --start --pidfile /var/run/salt-minion.pid --exec /usr/bin/salt-minion -- --daemon ${SALT_MINION_OPTIONS}
+ eend $? "Failed to start salt minion"
+}
+
+stop() {
+ ebegin "Stopping salt minion"
+ start-stop-daemon --stop --pidfile /var/run/salt-minion.pid
+ eend $? "Failed to stop salt minion"
+}
+