systemd: add oe/le systemd, mod systemd file (#78)

* cleanup: remove ambiled device

as written at the forum this is no longer supported. All people should move to adalight. They just need to flash a new sketch.

* fix typo

* travis.ci

* travis: move to ubuntu 14.04

* script try

* add serialport

* update .json files

* .

* .

* .

* update travis

* fix

* typo

* fix

* .

* disable v4l2 on mac

* disable email notification

* update osx

* maybe fix

* .

* disable osx and rm v4l2

* try osx

* try fix

* travis update

* add oe systemd file
This commit is contained in:
brindosch 2016-06-30 17:30:25 +02:00 committed by GitHub
parent b65edaf15e
commit 9101d7f604
3 changed files with 21 additions and 8 deletions

View File

@ -1,10 +1,11 @@
#!/bin/bash #!/bin/bash
# compile hyperion on osx # compile hyperion on osx
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON .. && make -j$(nproc) package cmake . -DCMAKE_PREFIX_PATH=/usr/local/Cellar/qt5/5.6.1-1
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=ON -Wno-dev .. && make -j$(nproc) package
fi fi
# compile hyperion on linux # compile hyperion on linux
if [[ $TRAVIS_OS_NAME == 'linux' ]]; then if [[ $TRAVIS_OS_NAME == 'linux' ]]; then
mkdir build && cd build && cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Release -DENABLE_AMLOGIC=ON -DENABLE_TESTS=ON -DENABLE_SPIDEV=ON .. && make -j$(nproc) package mkdir build && cd build && cmake -DPLATFORM=x86 -DCMAKE_BUILD_TYPE=Release -DENABLE_AMLOGIC=ON -DENABLE_TESTS=ON -DENABLE_SPIDEV=ON -Wno-dev .. && make -j$(nproc) package
fi fi

View File

@ -0,0 +1,12 @@
[Unit]
Description=Hyperion ambient light systemd service for OpenELEC/LibreELEC/RasPlex
After=graphical.target
[Service]
ExecStart=/bin/sh -c "exec sh /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion/hyperion.config.json"
TimeoutStopSec=2
Restart=always
RestartSec=2
[Install]
WantedBy=default.target

View File

@ -1,15 +1,15 @@
[Unit] [Unit]
Description=Hyperion Systemd service Description=Hyperion ambient light systemd service
[Service] [Service]
Type=simple Type=simple
User=root User=hyperion
Group=root Group=hyperion
UMask=007
ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure TimeoutStopSec=2
TimeoutStopSec=10 Restart=always
RestartSec=2
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target