Reputation: 139
[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
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
Reputation: 11
I followed this example and it worked well for my BBB:
https://gist.github.com/tstellanova/7323116
Upvotes: 0