where is hyperion.conf

  • Hi, the wiki says:


    4. add hyperiond as a os-service

    • on initctl: "hyperion.conf" in '/etc/init'
    • on init.d: "hyperion" in '/etc/init.d'
    • on systemd: "hyperion.service" in '/etc/systemd/system'


    5. start the hyperion service

    • on initctl: 'sudo initctl start hyperion'
    • on init.d: 'sudo service hyperion start'
    • on systemd: 'sudo systemctl start hyperion'


    But how do i find out which i need? and where is the file that need to go in the folders?
    Im running ubuntu 16.


    I compiled hyperion-ng version and copied the hyperion-remote and hyperiond to usr/bin
    cat /proc/1/comm
    reports: system d and i believe latest ubuntu switched to systemd, but then again where is the hyperion.service file i need to copy in /etc/systemd/system to get it running as an service?


    I only found a file HyperionConfig.h.in in the hyperion.ng-master folder but im not sure if this is it.
    If so should i rename it to hyperion.service?


    TY


    EDIT:
    btw i did a full removal, then compiled again and use the install script, after that i did it automatically created hyperion.conf" in '/etc/init but this is the output, and it also doesn't start @ boot.


    Code
    Ciiidefconiii@htpc:~$ sudo systemctl start hyperion
    Failed to start hyperion.service: Unit hyperion.service not found.
    iiidefconiii@htpc:~$ cd /etc/systemd/system


    a manual /usr/bin/hyperiond /etc/hyperion/hyperion.config.json does work...

  • hyperion.service - Hyperion ambient light systemd service
    Loaded: loaded (/etc/systemd/system/hyperion.service; disabled; vendor preset
    Active: activating (auto-restart) (Result: exit-code) since za 2016-09-17 02:
    Process: 1918 ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json
    Main PID: 1918 (code=exited, status=217/USER)


    sep 17 02:26:58 htpc systemd[1]: hyperion.service: Unit entered failed state.
    sep 17 02:26:58 htpc systemd[1]: hyperion.service: Failed with result 'exit-code
    ...skipping...


    \u25cf hyperion.service - Hyperion ambient light systemd service
    Loaded: loaded (/etc/systemd/system/hyperion.service; disabled; vendor preset
    Active: activating (auto-restart) (Result: exit-code) since za 2016-09-17 02:
    Process: 1918 ExecStart=/usr/bin/hyperiond /etc/hyperion/hyperion.config.json
    Main PID: 1918 (code=exited, status=217/USER)


    sep 17 02:26:58 htpc systemd[1]: hyperion.service: Unit entered failed state.
    sep 17 02:26:58 htpc systemd[1]: hyperion.service: Failed with result 'exit-code

  • im not sure if this is an bug or not, but the command sudo systemctl start hyperion never worked until i changed two values in hyperion.service file
    from
    User=hyperion
    Group=hyperion


    to.


    User=%i
    Group=%i


    and now it work and starts at boot.



    so i think this is a bug?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!