diff options
Diffstat (limited to 'python/webiopi.service')
| -rw-r--r-- | python/webiopi.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/webiopi.service b/python/webiopi.service new file mode 100644 index 0000000..c1f359c --- /dev/null +++ b/python/webiopi.service | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | [Unit] | ||
| 2 | Description=WebIOPi daemon | ||
| 3 | After=syslog.target network.target ntpd.service | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | Type=simple | ||
| 7 | WorkingDirectory=/root/webiopi/python | ||
| 8 | Environment=PYTHONPATH=/root/webiopi/python/build/lib.linux-armv6l-2.7 | ||
| 9 | ExecStart=/usr/bin/python2 -m webiopi -c config | ||
| 10 | Restart=on-abort | ||
| 11 | |||
| 12 | [Install] | ||
| 13 | WantedBy=multi-user.target | ||
