Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • what my i aim is to run my script as system deamon this is my .service file [Unit] Description=Battery Indicator [Service] ExecStart=/bin/bash /home/prinzpiuz/GitHub/myScripts/shell/bat Restart=on-failure [Install] WantedBy=multi-user.target but i am getting error like (code=exited, status=127) Commented Jan 6, 2019 at 3:49
  • First: 127 means "command not found". Second: This script is no daemon, so it makes no sense to start it as a service. It might be used to be started as a cronjob, say every 5 minutes. Third: You should create a separate question. Last: See here and here. Commented Jan 6, 2019 at 8:33