diff options
| author | manuel <manuel@mausz.at> | 2013-12-26 03:29:24 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2013-12-26 03:29:24 +0100 |
| commit | 70d41a270bfd8cb96718cd6a46f6b04ced94eed7 (patch) | |
| tree | 6f7e1cfbe8bdc4d25c06a3f27e4eb8397523ae6b | |
| parent | 81ec4a790179f49d53a2a13d59666e753fe66b42 (diff) | |
| download | webiopi-70d41a270bfd8cb96718cd6a46f6b04ced94eed7.tar.gz webiopi-70d41a270bfd8cb96718cd6a46f6b04ced94eed7.tar.bz2 webiopi-70d41a270bfd8cb96718cd6a46f6b04ced94eed7.zip | |
add systemd.service file
| -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 | ||
