Skip to content

Conversation

buxtonpaul
Copy link
Contributor

Based on some discussion on the forums I have created some guidance on using systemd to start scripts as once configured properly is a better way of handling services. My first attempt at contributing to things :-)

@JamesH65
Copy link
Contributor

Sorry about delay, need to tech check this when I get the time.

After=network.target

[Service]
ExecStart=/usr/bin/python3 -u main.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing, you probably need to explain that service you are starting is, in this example, a Python program, but that you could have any sort of application start up here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, that makes sense.

Expanded description of the ExecStart line.
@JamesH65
Copy link
Contributor

JamesH65 commented Sep 7, 2017

Tech check done, sending to copy edit

@JamesH65 JamesH65 merged commit ede280c into raspberrypi:master Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants