If you are trying to start/stop splunkd for a forwarder maybe, take a look at this application -
Or, there is already provision in splunk to restart from ui.
Click on Settings > Server controls
maybe I didn't say it clear enought, sorry.
What I need is a jquery executing the commands when I press a button in a my own dashbord. How can I do?
Thanks and regards