We have some kiosks (unmanned) and we’re using electron as the front end of them (Running on Ubuntu 16.04).
My question is on how to handle automatic launching of electron at startup via
systemd (or similar init system).
Right now, my
ux.service file looks like this:
[Unit] Description=Kiosk UX service Requires=graphical.target After=graphical.target [Service] User=myuser StartLimitInterval=5 StartLimitBurst=10 Environment=DISPLAY=:0.0 ExecStart=/usr/local/lib/npm/bin/electron /home/myuser/dev/kiosk-ux Restart=always RestartSec=5 [Install] WantedBy=multi-user.target
But not starting it at boot time. Any idea of what am I missing?
p.s. Once started (manually through
sudo systemctl start ux.service, it does run it and monitors its running state (restarts if I kill the elctron process), but it doesn’t start it at boot time.