[Unit] Description=Spark History Server Dispatcher Wants=network-online.target After=network-online.target Requires=mesos-master.service [Service] WorkingDirectory=/usr/local/lib/spark/ User=spark ExecStart=/usr/local/lib/spark/sbin/start-history-server-wrapper.sh ExecStop=/usr/local/lib/spark/sbin/stop-history-server.sh KillMode=process Restart=always StandardOutput=syslog StandardError=syslog TimeoutStopSec=30 [Install] WantedBy=multi-user.target