Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: typo

...

This can be done with systemd which is built-in to Linux. Here is a sample configuration file (named /etc/systemd/system/pico-engine.service):

Code Block
languagetext
[Unit]
Description=pico-engine
After=remote-fs.target 

[Service]
User=USERNAME
Environment="PICO_ENGINE_BASE_URL=http://HOSTNAME:PORT"
ExecStart=/usr/local/bin/pico-engine
Restart=always

...