diff options
Diffstat (limited to 'apache-spark-worker@.service')
-rw-r--r-- | apache-spark-worker@.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apache-spark-worker@.service b/apache-spark-worker@.service new file mode 100644 index 000000000000..ee18632d1281 --- /dev/null +++ b/apache-spark-worker@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Apache Spark Standalone Slave +After=network.target + +[Service] +Type=forking +User=apache-spark +Group=apache-spark +Environment=SPARK_LOG_DIR=/var/log/apache-spark +ExecStart=/opt/apache-spark/sbin/start-worker.sh %i +ExecStop=/opt/apache-spark/sbin/stop-worker.sh %i +SuccessExitStatus=143 + +[Install] +WantedBy=multi-user.target |