aTechieSmile
aTechieSmile

Reputation: 139

How to enable services in beaglebone black?

[Unit]
Description=Splash screen
DefaultDependencies=no

[Service]
Type=oneshot
ExecStart=/usr/local/bin/psplash

[Install]
WantedBy=basic.target

job for .service failed because the control process exited with an error code

Upvotes: 0

Views: 440

Answers (2)

Vijay Panchal
Vijay Panchal

Reputation: 317

Here is shell script to make service of python code. It will start the execution at startup,

[Unit]
Description= Python First Service
After=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/python /home/debian/serv_demo.py
Restart=on-abort

[Install]
WantedBy=multi-user.target

Upvotes: 1

nahuelq78
nahuelq78

Reputation: 11

I followed this example and it worked well for my BBB:

https://gist.github.com/tstellanova/7323116

Upvotes: 0

Related Questions