#!/bin/bash : ' @vendor Chorke Academia, Inc. @web https://cdn.chorke.org/docs/academia @version 1.0.00 @since 1.0.00 ' :</dev/null </dev/null < ${SPARK_HOME}/etc/spark-slave.pid" ExecStart=${SPARK_HOME}/sbin/start-slave.sh ${SPARK_MASTER} ExecStop=${SPARK_HOME}/sbin/stop-slave.sh [Install] WantedBy=multi-user.target EOF } function launch(){ sudo systemctl daemon-reload sudo systemctl enable spark-slave.service sudo systemctl start spark-slave.service sudo systemctl status spark-slave.service } function init(){ validate download approve install launch } init