User Tools

Site Tools


evenements:log:20200606

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
evenements:log:20200606 [2020/10/17 21:15]
lomanic [Log] minor change to systemd unit
evenements:log:20200606 [2020/10/17 21:29] (current)
lomanic [Log]
Line 25: Line 25:
   * ''<nowiki>git clone https://git.interhacker.space/Lomanic/presence-button-web</nowiki>'', add .env file and append ''<nowiki>echo "PORT=3000" >> .env</nowiki>'', otherwise the listening port would be dynamic (useless for reverse proxy)   * ''<nowiki>git clone https://git.interhacker.space/Lomanic/presence-button-web</nowiki>'', add .env file and append ''<nowiki>echo "PORT=3000" >> .env</nowiki>'', otherwise the listening port would be dynamic (useless for reverse proxy)
   * following https://doc.ubuntu-fr.org/creer_un_service_avec_systemd#exemple_de_service_de_type_simple <code>   * following https://doc.ubuntu-fr.org/creer_un_service_avec_systemd#exemple_de_service_de_type_simple <code>
-sudo cat << EOF /etc/systemd/system/presence-button-web.service+cat << EOF | sudo tee /etc/systemd/system/presence-button-web.service >/dev/null
 [Unit] [Unit]
 Description=Presence button web Description=Presence button web
Line 43: Line 43:
 WantedBy=multi-user.target WantedBy=multi-user.target
 EOF EOF
-systemctl enable presence-button-web.service+sudo systemctl enable presence-button-web.service
 </code> </code>
   * add this to ''/etc/lighttpd/lighttpd.conf''<code>   * add this to ''/etc/lighttpd/lighttpd.conf''<code>
evenements/log/20200606.txt · Last modified: 2020/10/17 21:29 by lomanic